textbox: Cause less memory allocations
commit5accf0014b9f230259808590185b23b587b1443a
authorUli Schlachter <psychon@znc.in>
Wed, 7 Sep 2011 19:37:23 +0000 (7 21:37 +0200)
committerUli Schlachter <psychon@znc.in>
Wed, 7 Sep 2011 19:41:32 +0000 (7 21:41 +0200)
treea58297a765eb882afb69b7e70830836125af6958
parentbd8158495e059baa0e8ba525b813254451447f4a
textbox: Cause less memory allocations

Instead of creating a pango layout all the time (e.g. twice per redraw), we now
only create a single layout which we keep around all the time and update as
needed. Hopefully this helps a little.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/wibox/widget/textbox.lua.in