[Urwid] Unbearable slowness in UTF-8 mode
ian at excess.org
Wed Oct 11 14:04:34 EDT 2006
Ian Ward wrote:
> Nuutti Kotivuori wrote:
>> In any case, this slowness is a showstopper for me - and I'm wondering
>> what would be the best way to optimize this.
> Currently Urwid redraws all the visible widgets every time you call
> render. The Text widgets do cache the result of their alignment and
> wrapping, but Urwid might be calling calc_width unnecessarily on text it
> should already know the width of.
Please try the attached patch. The Columns widget was causing
calc_width to be called unnecessarily.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1429 bytes
Desc: not available
Url : http://lists.excess.org/pipermail/urwid/attachments/20061011/113305d0/less_width_checking.bin
More information about the Urwid