Scala IDE is experiencing very long pauses (sometimes 5 seconds or more) when saving files, loading files, switching tabs (although only on first use of the tab), and invoking content assist.
This happens in a project where libraries like play and slick are used.
Code has been split up into traits to make classes smaller and that helped a bit.
Find attached Svelto log and eclipse.ini (these GC and heap values have improved performance a bit).
This happens in a project where libraries like play and slick are used.
Code has been split up into traits to make classes smaller and that helped a bit.
Find attached Svelto log and eclipse.ini (these GC and heap values have improved performance a bit).
Leave a comment
Thanks for the report, these delays are definitely things that need to be improved. We can't simply speed up these things because we have to wait on the compiler in a lot of cases but we work on workarounds. Save operation and content assist can be improved but not easy. Loading a file probably can't be improved because the compiler needs to be started and when it takes so long than it takes so long. I'm not sure what happens when you switch tabs. Can you please explain in more detail where you are/feel blocked here?
on 2015-03-23 07:19 *
By rpiaggio307211
Thaks very much for all the hard work!
The scenario when switching tabs is the following:
1) Scala IDE is closed with several tabs open. (Preferences/General/Editors/"Restore editor state on startup" is checked).
2) Scala IDE is launched again. Tabs are restored. Tab X gets focus.
3) Now, when switching to another tab, say Y, there is a long delay. If I switch back to X there is no delay. If then, I switch back to Y there is no delay either. If I switch to a 3rd tab, Z, there is a delay the first time.
My guess is that the file is loaded lazily upon being selected for the first time, and the delay is the regular loading one.
I would appreciate any hints that could speed up these delays, in case there are any:
- For example, would disabling implicit highlighting in the editor help? (Preferences/Scala/Editor/Implicits)
- Any switches I can pass to the presentation compiler?
Thanks again!
The scenario when switching tabs is the following:
1) Scala IDE is closed with several tabs open. (Preferences/General/Editors/"Restore editor state on startup" is checked).
2) Scala IDE is launched again. Tabs are restored. Tab X gets focus.
3) Now, when switching to another tab, say Y, there is a long delay. If I switch back to X there is no delay. If then, I switch back to Y there is no delay either. If I switch to a 3rd tab, Z, there is a delay the first time.
My guess is that the file is loaded lazily upon being selected for the first time, and the delay is the regular loading one.
I would appreciate any hints that could speed up these delays, in case there are any:
- For example, would disabling implicit highlighting in the editor help? (Preferences/Scala/Editor/Implicits)
- Any switches I can pass to the presentation compiler?
Thanks again!
on 2015-03-23 15:26 *
By Simon Schäfer
The behavior you describe is the intended one - every time you open a new editor a new compiler needs to be started. However, there shouldn't be a need to wait for the compiler when the editor is opened, instead it should load in the background - as it is already doing for semantic highlighting. I'll have a closer look to that.
Disabling any semantic features shouldn't decrease the time an editor needs to open a fresh file. As far as I know all of these features are handled by background threads.
Disabling any semantic features shouldn't decrease the time an editor needs to open a fresh file. As far as I know all of these features are handled by background threads.
on 2015-03-23 15:33 *
By Simon Schäfer
Operative system changed from Windows to All
Summary changed from Very long pauses on save, load, switch tabs, content assist (Scala IDE 4 + Scala 2.11.6 + Play 2.3.7 + Slick 2.0) to Very long pauses on save, load, switch tabs, content assist
Description changed from Scala IDE is experiencing v... to Scala IDE is experiencing v...
No file chosen
You have an empty file field. Please select or remove it.
Name | Size | ||
---|---|---|---|
eclipse.ini | 625 Bytes | Added by rpiaggio307211 on 2015-03-22 - Upload new version | |
threadDumps.zip | 510 KB | Added by rpiaggio307211 on 2015-03-22 - Upload new version |