You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
luthfiampas
changed the title
Very slow selection in a TextBox with large amount of characters
Very slow operations in a TextBox with large amount of characters
Dec 28, 2021
@Gillibald Looking at the WPF's TextBox or GTK's TextView, they can handle large text content very nicely. Seems that I pick the wrong label for this issue.
This is only slow because of selection highlighting. Each selection change causes a new text layout pass for the whole text. Nothing is cached or virtualized. WPF caches some portion of the text layout and isn't creating a new string each time the text is edited.
Describe the bug
Operations in a TextBox control (such as selecting, typing, clicking) with 50000+ characters is very slow, and it uses 100% of CPU.
To Reproduce
Expected behavior
Faster operations.
Screenshots
textbox.mp4
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: