[Lazarus] Memo.Lines.BeginUpdate
Vincent Snijders
vincent.snijders at gmail.com
Fri Mar 8 15:21:38 CET 2013
2013/3/8 Juha Manninen <juha.manninen62 at gmail.com>:
> On Fri, Mar 8, 2013 at 3:43 PM, Vincent Snijders
> <vincent.snijders at gmail.com> 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
More information about the Lazarus
mailing list