diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-09-27 15:17:35 +0200 |
---|---|---|
committer | Ian Ward <ian@excess.org> | 2014-10-05 09:49:20 -0400 |
commit | 1f6e1041f797ad7f139da2371385eb33a5fe74fd (patch) | |
tree | e52d3ed4a34f73b9fe71a10bbbf076a08054a142 | |
parent | 4fb7af8f845dadafb3d6f55962c606dbd0575619 (diff) | |
download | urwid-1f6e1041f797ad7f139da2371385eb33a5fe74fd.tar.gz |
raw_display: enable code for skipping unchanged rows during redraw
Significantly improves redraw performance.
-rw-r--r-- | urwid/raw_display.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/raw_display.py b/urwid/raw_display.py index 58b3112..98805e0 100644 --- a/urwid/raw_display.py +++ b/urwid/raw_display.py @@ -682,7 +682,7 @@ class Screen(BaseScreen, RealTerminal): cy = 0 for row in r.content(): y += 1 - if False and osb and osb[y] == row: + if osb and osb[y] == row: # this row of the screen buffer matches what is # currently displayed, so we can skip this line sb.append( osb[y] ) |