-
Notifications
You must be signed in to change notification settings - Fork 95
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
UI freeze when saving big file after find replace #1575
Comments
I found 2 issues here:
|
The binary search comments can be realized by something like this:
That doesn't fix the problem though (since its background work). The retain method will need another array to speed it up, with different contents. Since the background work is fast already with this change, its probably not needed to do more there. |
To clarify, I was using the find-replace dialog. Not the new overlay. |
Hi @trancexpress, Thank you for your report. @jannisCode and I have been looking into the issue but so far were unable to reproduce the UI freeze when saving the changed file. However, we experienced a UI freeze when replacing a lot of text and are currently trying to triangulate the problem and look into potential solutions. Regarding the UI freeze when saving, could you please provide the Eclipse error log for it? BR |
Here is a log file from a freeze: log_gh1575.txt |
Could you please share a reproducing javafile that compiles without error? The example given results in "Too many constants, the constant pool for LargeJavaFile would exceed 65536 entries" |
@jukzi While I was not successful in reproducing the mentioned error, I reduced the number of inner classes to 20k, which was still large enough to slow the find and replace operation but gave no errors. |
You can also generate the files in this form:
I found that adding highlighting positions starts with > 100 inner classes. So when debugging, less than 100 inner classes were not useful. Last time I tried, the problem was also more easily debugged without the errors. Though in the original case we do have errors; we care about saving not been slow also for files with errors. |
Hi @trancexpress, thank you for the Code snippet. With my (quite powerful) machine and Eclipse version i was unable to reproduce the the UI freeze when saving after search and replace. I tried 10 000 inner classes. Can you maybe produce a visualvm snippet of the the freeze? |
I also can't reproduce with:
I assume the freeze was fixed then, so closing this issue. |
To reproduce:
The text was updated successfully, but these errors were encountered: