mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
CTable now caches the width of each column instead of recalculating it each time it is needed. The code for this was there before, but it was not used. Now the widths are calculated when the table is filled, not when the width is needed the first time. This caching leads to a huge speedup (3-4 times faster) if there are many rows in the table. This also cleans up the interface by making it possible to mark GetColumnWidth and GetLine as const. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1160 726aef4b-f618-498e-8847-2d620e286838
14 KiB
14 KiB