From a27dbb8a8e1eea59d7eecb3f4120599eb2c46826 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 27 Sep 2014 15:17:35 +0200 Subject: raw_display: enable code for skipping unchanged rows during redraw Significantly improves redraw performance. --- urwid/raw_display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urwid/raw_display.py b/urwid/raw_display.py index a3d14a0..4853a83 100644 --- a/urwid/raw_display.py +++ b/urwid/raw_display.py @@ -745,7 +745,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] ) -- cgit v1.2.1