diff options
author | Joe Wilm <joe@jwilm.com> | 2017-10-12 19:07:49 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:24:38 -0700 |
commit | bbe276e3a80571dd0d72a9b32fb7bed38c3be868 (patch) | |
tree | 122b3412c00aeab21ab14043a961f95f45c78715 /tests | |
parent | fd7c1bf6639afc2a141a215f6f64fa299c5a160e (diff) | |
download | alacritty-bbe276e3a80571dd0d72a9b32fb7bed38c3be868.tar.gz alacritty-bbe276e3a80571dd0d72a9b32fb7bed38c3be868.zip |
Back Grid with VecDeque
VecDeque offers improved performance beyond a plain Vec for common
scrolling situations (full screen scroll). Additionally, VecDeque is
necessary for performant scrollback since recycling old rows for a Vec
would be expensive (push/pop front would shift entire vec).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ref.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ref.rs b/tests/ref.rs index b8587955..2a093704 100644 --- a/tests/ref.rs +++ b/tests/ref.rs @@ -84,7 +84,7 @@ fn ref_test(dir: &Path) { } if grid != *terminal.grid() { - for (i, row) in terminal.grid().iter_rows().enumerate() { + for (i, row) in terminal.grid().lines().enumerate() { for (j, cell) in row.iter().enumerate() { let original_cell = &grid[Line(i)][Column(j)]; if *original_cell != *cell { |