xtermjs/xterm.js

Search is too slow

Geschlossen

#5.176 geöffnet am 03.10.2024

 (34 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)TypeScript (1.574 Forks)batch import
area/addon/searcharea/performancehelp wantedtype/bug

Repository-Metriken

Stars
 (16.196 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 10h) (16 gemergte PRs in 30 T)

Beschreibung

Currently the search addon limits itself to 1000 highlights by default. Contrast this to monaco's 20000 results before it gives up highlighting. When we increase our limit to 20000 the search itself ends up blocking the renderer pretty significantly.

Here is a profile using my i7-12700KF 3.61 GHz:

test file test.txt

Image

Image

Note that the search is also not incremental, so all successive searches take the same amount of time even for non-regex searches. https://github.com/xtermjs/xterm.js/issues/5177

VS Code issue: https://github.com/microsoft/vscode/issues/230365

Contributor Guide