2013/3/8 Juha Manninen <[email protected]>:
> On Fri, Mar 8, 2013 at 3:43 PM, Vincent Snijders
> <[email protected]> wrote:
>>> Method number 1. is about 40 times faster!
>>> I expected method number 2. to be the fastest.
>>
>> Why? There is lot of comminucation between the LCL and widgetset, even
>> if the widgetset doesn't paint any update with method 2.
>
> Well, I would consider this as a bug. A 40 times difference is big!
> I have used BeginUpdate / EndUpdate often and they usually help to
> obtain a fast GUI. I didn't make exact timings though.

It helps some to use beginupdate / endupdate. But a TStringList is a
better place to build strings than a TMemo.

> Now, is this a well known issue and the right way is to always assign
> data from a temp list?

Only if you are changing it a lot.

Vincent

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to