On Wed, 26 May 2010 20:09:47 +0100 Martin <[email protected]> wrote:
> On 26/05/2010 19:54, Mattias Gaertner wrote: > > > > Apparently it uses some kind of line state too and only updates > > till the visible area. Maybe synedit can do the same. At the moment > > syndit updates everything too often. > > > > It's been on my todo for a long time (and some prep work, like moving > highlighter related functions from synedit to highlighter have started....) > > It will be limited though => because folding needs to know the full deal > (as scrollbars depend on the total of visible (unfolded) lines. > Of course, if no nodes are folded => folding doesn't care (even if > switches on). It's only when a node actually is folded => then folding > needs to verify it still exists. I see. But at least "replace all" could be improved. > Another improvement (but much less noticable) would be to separate > structural and visual scan. But that would mean traversing two times though the code. Bad for processor caching. > certain info (like making a "+" red) is only needed when you scan for > display. > It doesn't matter for the overall structure. Also many keywords make no > difference for the structure (as far as the highlighter is concerned) > "deprecated" for example. In structural scan it doesn't need to be a > keyword. I will send you a gprof log. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
