Support for Multi-core desktops - Editor Syntax/Inspection parse should only pause 1 out of n cores
Hi,
I filed IDEA-14683 "Optimize Editor Syntax/Inspection parase for multi-cores, limit autoreparse delay to only 1 out of n cores." around 2 years ago when multi-core desktops were becoming mainstream. Since this is still a major issue for me that limits IDEA fully leveraging my quad-core workstation, I want to bring it up again. Maybe now more people are developing with pleasure on multi-core workstations, and can comment. [http://jetbrains.net/tracker/issue/IDEA-14683]
Re-reading my original issue, I don't think I made it clear that the main problem is that IDEA pauses the syntax/inspections parse on key presses when the file is not even being modified. Clicking on the editor pane with your mouse also pauses the syntax/inspection parse. However, just moving your mouse over the editor panel (no clicking) does *not* pause the parse.
When I am browsing files, e.g. stepping through the usages in a file, or just studying some code, what happens is the syntax/inspections parse is getting paused if I press any key. After the auto-reparse delay, it will restart the syntax/inspections parse, but if you type another key, it pauses again. Note that I am not editing the file(s), just navigating it with the keyboard, my cpu is at ~ 0% on 8 cores (4 cores X2 with Intel HT turned on). I have to stop pressing a key if I want the syntax/inspection parse to complete.
The desired behavior is that if a file is not being modified, then the syntax/inspection parse should continue for the file in the Editor pane using n cores - 1.
Please, please jetbrains, tell me you can do this.
Also, I hope all Jetbrains developers are working on quad-core (or those new six core) workstations. If they have the speed, they will put it to good use. PS. If you want IDEA to really fly , also use a SSD drive like Intel X25-E Extreme SSD.
Thanks,
-Alex
Please sign in to leave a comment.
i don't see a problem here. no one is using idea without ever stopping to type. also, parsing a file only takes a few seconds. jetbrains should fix the "parsing stop when pressing non-write-buttons though
A related point would be the increasing number of OpenCL-enabled systems, the first libraries for JAVA-integration are available
http://code.google.com/p/nativelibs4java/wiki/OpenCL
Yes, almost every file only takes a few seconds to parse. Actually the syntax parse is almost instant, but the inspsections take most of the time because I have more than the default enabled.
But right now I am seeing unnecessary number of seconds extra delay because IDEA keeps pausing the parase as soon as I press any key. Sometimes I have to purposefully stop typing/navigating so I can see the inspection warnings in the file.
Your one line summation of my request "jetbrains should fix the "parsing stop when pressing non-write-buttons though" makes me wonder if I am making this overly complicated talking about "n cores - 1", etc. I was trying to think of a solution that would still be OK for unfortunate developers still trying to use IDEA on single-core machines.
I would be happy if there was a checkbox(default can be off)
[X] Syntax/Inspection Parse only stops on file modification.
My workstation is 100% responsive even while IDEA is parsing files, so I'd rather have it use all n cores anyway.
IDEA is already blazingly fast on my workstation; However, it could be even faster with this change.
Again, I hope Jetbrains will consider this performance enhancement.
Thanks,
-Alex