[Lazarus] About 0013268: SynEdit parses every line twice on load or paste (Attn: Flávio)

Vincent Snijders vincent.snijders at gmail.com
Wed Mar 4 15:39:35 CET 2009


2009/3/4 Martin Friebe <lazarus at mfriebe.de>:
> Hi,
>
> To take the discussion of the bug tracker.
>
> My current intention on this issue would be to solve the additional
> issues, such as double scan on Paste, or ensuring LoadFromFile only does
> a single scan for all lines in one go)
>
> This would mean the only Problem remaining is:
> If a user writes his own code, calling Lines.Add (or even Lines.Insert)
> in a loop. And does so without calling Lines.BeginUpdate before.
>
> While I admit that such a behaviour would add a lot of calculation
> overhead, with the current SynEdit implementation, I would also see it
> partly as a user error, since other Components also provide BeginUpdate
> or similar Methods.

IMHO, if the user does not call Lines.BeginUpdate before doing
Lines.Add or Lines.Insert, then the performance penality is his own
fault, not something that must be fixed.

Vincent



More information about the Lazarus mailing list