Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding text in a large document stutters on first characters #430

Open
Rekkonnect opened this issue Jun 2, 2024 · 1 comment
Open

Finding text in a large document stutters on first characters #430

Rekkonnect opened this issue Jun 2, 2024 · 1 comment

Comments

@Rekkonnect
Copy link

If the finding matches too many occurrences, the control causes a stutter making sure that all occurrences are evaluated before accepting more text input and cancelling the find on the short text.

Example of large document: https://raw.githubusercontent.com/dotnet/roslyn/main/src/Compilers/CSharp/Test/Syntax/Generated/Syntax.Test.xml.Generated.cs

Typing "test" will cause a stutter upon typing "t", and then as the results diminish, the other letters will appear normally without any visible stutter.

@danipen
Copy link
Collaborator

danipen commented Jun 2, 2024

We could review the sewch performance to see if we can improve it. I guess other editors such as VSCode/Sublime can do it without issues.

If the performance cannot be easily improved an option could be restricting starting the search for two or more chars (giving probably some UI clue about it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants