Commit Graph

7 Commits

Author SHA1 Message Date
Joe Wilm 84769ce170 Remove some unused impls 2018-06-02 09:24:38 -07:00
Joe Wilm 92b11cfa43 Minor improvements 2018-06-02 09:24:38 -07:00
Joe Wilm f13685918f WIP optimize scroll in region
This intends to optimize the case where the top of the scrolling region
is the top of the screen. In theory, scrolling in this case can be
optimized to shifting the start/end of the visible region, and then
rearranging any lines that were not supposed to be scrolled (at the
bottom of the region). However, this didn't produce quite the speedup I
expected.
2018-06-02 09:24:38 -07:00
Joe Wilm 350bb8c800 Use memcpy for resetting row contents
In addition to a marginal performance improvement, this simplifies some
logic in the Term implementation since now the Grid fully handles row
recycling.
2018-06-02 09:24:38 -07:00
Joe Wilm 4ed25009c4 Remove some unused methods and impls 2018-06-02 09:24:38 -07:00
Joe Wilm 6fc0e1ec49 Eliminate ClearRegion trait 2018-06-02 09:24:38 -07:00
Joe Wilm 277425956f Move grid Row and tests into submodules
This is part of some cleanup for the grid module as a whole.
2018-06-02 09:24:38 -07:00
Renamed from src/grid.rs (Browse further)