Martin Garstenauer
Martin Garstenauer
@renderhjs Is this still a problem? I suggest closing the issue.
> If the performance cannot be easily improved an option could be restricting starting the search for two or more chars ... Another solution would be to throttle/debounce the input,...
I did some quick profiling using @Rekkonnect's example. When I search for "t" I get more than 50,000 results. It seems most time is spent here: https://github.com/AvaloniaUI/AvaloniaEdit/blob/master/src/AvaloniaEdit/Search/SearchPanel.cs#L460 `TextSegmentCollection.Add` is slow....
I can't reproduce the problem. (Tested with 11.1.0, 11.2.0 and latest master.) @gebodal Does the problem still exist? Can you provide a test project? Otherwise, I suggest closing the issue.
Probably this: https://github.com/AvaloniaUI/AvaloniaEdit/issues/543
@goswinr Good to know. Is this for legacy reasons (e.g. coming from AvalonEdit)? Or is there an issue (performance, missing feature) with the TextMate variant? I like your suggestion. Moving...