-
Notifications
You must be signed in to change notification settings - Fork 260
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
Editor freezes for several seconds when editing or moving around in "large" documents #575
Comments
It's not a solution, but can you see if it still occurs if you call |
You suggestion, does help: (no more long freeze)*, but on the other hand then some functionality get lost
Additional info:
|
Good point. One gross thing is most There are a few ways to tackle this, but I'll probably pick a simple route for a 3.5.x release and do something more robust with an API change in the upcoming 4.0.0 major release. Thanks for bringing this up! |
The chars above should no longer trigger the Mark Occurrences, so hopefully that addresses common cases here. I suppose this is still possible, but it gets harder to solve in the general case. |
Thanks for the quick response! |
Description
Editor freezes for several seconds when editing or moving around in large documents
Steps to Reproduce
Expected behavior
not freezing when editing text
Actual behavior
freezing when editing file
Java version
Compiled on java 8
runtime version: 21.0.1
Additional context
Hi there, it was a long time since my last upgrade of RSyntaxTextArea
I was at: 3.0.2
And went to: 3.5.2
I usually have large files...
And when I'm editing them now, it's good awfull slow at some points
I added a "swing" EventDispatchThreadHangMonitor, which prints a stacktraces if the EDT takes to long...
(possibly from here: https://github.com/floscher/swinghelper/blob/master/src/java/org/jdesktop/swinghelper/debug/EventDispatchThreadHangMonitor.java)
My assumption is that it tries to locate all entries of the "current" string/char, to update the "gutter" of known locations...
and that part of the code is slow (when having a large file)
This is a typical stacktace from EventDispatchThreadHangMonitor
Is this a "known" issue, or has it been introduced somewhere between 3.0.2 -> 3.5.2
Do I need to back to version 3.0.2 (or do you recommend using any other prior version)
Thanks for the good work
The text was updated successfully, but these errors were encountered: