On 16/08/2011 16:58, Ludo Brands wrote:
The attached patch creates a shared imagelist
Please test and see what is the gain
PS: this is a quick patch just for test. more cleanup can be done
A gain of 7M for the 450 files (still using cmem) and, more important, the
load time (first time load) dropped from 17.60 secs to 13.50 secs. This was
tested twice to remove the effect of file caching. Not bad for a quick
patch!
Well I guess I will look at that.
On windows it saves 3 or 4 secs too
There is another potential TextDrawer. Each synedit has one, and it does
calculations on the font (so it accesses the OS).
However, it is one of the few areas of synedit that has had very little
work, and is really not nice code.
Not sure if I will have time to look at it...
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus