IDEA hangs parsing too long Class
I know that this Topic has been already discussed.
However, I haven't seen improvement on the later release of Idea. I was expecting that the upcoming release (Idea 5) would be much faster.
I am working on an ERP project.
Most of the classes I'm working on contains more than 15000 lines of codes(EJB files to be more specific).
IDEA hangs everytime I opened that file.
For now, I set the AutoReparse delay to 9999999.
However, I can't enjoy the powerful features of IDEA (Code completion, Error highlighting, and intention actions).
I just relied on the error message of ant build.
I am using Idea build 3326 on
Windows 2000 SP4
Pentium 3GHZ
1GB RAM
Please sign in to leave a comment.
In article <28327170.1115803024737.JavaMail.itn@is.intellij.net>,
no_mail@jetbrains.com says...
I have the same problem in a class that is about 5000 lines. It doesn't
hang, but the code completion, etc works very slowly.
--
-
David H. McCoy
-
I do the "auto-parse delay" trick too, because some of my classes are about 2000 lines. (Powerbook 1.5GHz + 512 MB RAM)
My absolute requirement for any type of text editor is the ability to cope with my typing speed. (and copy / paste delay nightmare)
I trully love IDEA and the amazingly well-designed edition features, but when they get in the way by creating unbearable lag, I just switch them off ! No mercy
In fact, I keep the minimum inspections/plugins loaded at all times.
Because I only do Swing desktop development, I could do with a cheaper, lighter version of IDEA that only has the "basic" source-code features (Ant and CVS integration, intentions, inspections, refactorings, reformat+organize imports, fast navigation and search, Debugger, NO GUI builder, NO J2EE stuff, etc).
To be fair, I cannot prove that even if that was possible, the speed and general feel of IDEA would be better.
OK, I stop ranting, because IDEA is great anyway, and it's a privilege to be able to get your hands on the EAP with so much interaction with the so-skilled people at JetBrains.
nick wrote:
For these kinds of performance problems, please upload a CPU snapshot
from the latest EAP build. It greatly helps our ability to fix these
problems.
--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
Forgive me for my ignorance.
But, how can I create a snap shot of my CPU when Idea hangs during parsing of the class?
Could you please give me additional information on how to do this?
Thank you very much!
Would it be possible to define different autoparse values for classes
with less and more than X lines?
Or maybe a factor that can be multiplied by the original autoparse value
for each additional Y lines.
Understand? Would this help?
I'm editing a class with only 800 lines and such functionalities are
working slowly. :(
Thanks,
Franklin.
Rob Harwood (JetBrains) wrote:
>> I know that this Topic has been already discussed.
>> However, I haven't seen improvement on the later release of Idea. I
>> was expecting that the upcoming release (Idea 5) would be much faster.
>>
>> I am working on an ERP project. Most of the classes I'm working on
>> contains more than 15000 lines of codes(EJB files to be more specific).
>>
>> IDEA hangs everytime I opened that file. For now, I set the
>> AutoReparse delay to 9999999.
>> However, I can't enjoy the powerful features of IDEA (Code completion,
>> Error highlighting, and intention actions). I just relied on the error
>> message of ant build.
>>
>> I am using Idea build 3326 on Windows 2000 SP4
>> Pentium 3GHZ
>> 1GB RAM
>>
>>
I'd go a little further and suggest that IDEA should be smart enough to always figure out an optimal autoparse value -- shouldn't be that hard.
Guys, I'd go even further and suggest that IDEA should just always be fast enough.
I would much prefer that to auto-parse delay calculation be it automatically or not.
JetBrains have implemented such an incredible IDE, I reckon they know how to use a profiler.
It's a little frustrating currently, but I count on the final release to be faster.
Err, hopefully, any JetBrainers like to comment?
Rob Harwood (JetBrains) wrote:
>> I know that this Topic has been already discussed.
>> However, I haven't seen improvement on the later release of Idea. I
>> was expecting that the upcoming release (Idea 5) would be much faster.
>>
>> I am working on an ERP project. Most of the classes I'm working on
>> contains more than 15000 lines of codes(EJB files to be more specific).
>>
>> IDEA hangs everytime I opened that file. For now, I set the
>> AutoReparse delay to 9999999.
>> However, I can't enjoy the powerful features of IDEA (Code completion,
>> Error highlighting, and intention actions). I just relied on the error
>> message of ant build.
>>
>> I am using Idea build 3326 on Windows 2000 SP4
>> Pentium 3GHZ
>> 1GB RAM
>>
>>
Let me take a simple example, just try to use Intellij to open
AbstractTextEditor in org.eclipse.ui.texteditor, which contains only
5134 lines of codes. IDEA hangs when doing most instructions,
modifying or folding codes eg, and the memory usage will easily raise to
1xxM. I notice the performance is poor when parsing many inner classes.
I have tried both the release version and the latest eap build, the
performance has been improved, but still far to good enough.
Sorry to bother you with this old topic, but the performance is still a
big problem to me.
Cuper wrote:
>> nick wrote:
>>
>>> I know that this Topic has been already discussed.
>>> However, I haven't seen improvement on the later release of Idea. I
>>> was expecting that the upcoming release (Idea 5) would be much faster.
>>>
>>> I am working on an ERP project. Most of the classes I'm working on
>>> contains more than 15000 lines of codes(EJB files to be more specific).
>>>
>>> IDEA hangs everytime I opened that file. For now, I set the
>>> AutoReparse delay to 9999999.
>>> However, I can't enjoy the powerful features of IDEA (Code
>>> completion, Error highlighting, and intention actions). I just relied
>>> on the error message of ant build.
>>>
>>> I am using Idea build 3326 on Windows 2000 SP4
>>> Pentium 3GHZ
>>> 1GB RAM
>>>
>>>
>>
>> For these kinds of performance problems, please upload a CPU snapshot
>> from the latest EAP build. It greatly helps our ability to fix these
>> problems.
>>
Does IDEA really hang, or does it just take an extremely long time? If
it really hangs, you can probably get a thread dump if you run IDEA with
a console window, and do Ctrl-Break in the console window (assuming
Windows). I'm not sure how to set up IDEA to run from a console for this
EAP. Anyone?
If it is simply taking a really long time, then you could try commenting
out some of the code until it takes say 30 seconds. Then you can turn
on the CPU snapshot and send it. It would be good to also send the file
if you are able to do so.
--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
my problem is in parsing property file... i have 3 locales, english and german are ok, but when it came to russian.. it just hangs
Attachment(s):
dump.txt
Andrey Dekhtyar wrote:
Try to get a stack trace, and if possible, make a bug report and attach
the file.
--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
Rob Harwood (JetBrains) wrote:
>> Rob Harwood (JetBrains) wrote:
>>
>>> nick wrote:
>>>
>>>> I know that this Topic has been already discussed.
>>>> However, I haven't seen improvement on the later release of Idea. I
>>>> was expecting that the upcoming release (Idea 5) would be much faster.
>>>>
>>>> I am working on an ERP project. Most of the classes I'm working on
>>>> contains more than 15000 lines of codes(EJB files to be more specific).
>>>>
>>>> IDEA hangs everytime I opened that file. For now, I set the
>>>> AutoReparse delay to 9999999.
>>>> However, I can't enjoy the powerful features of IDEA (Code
>>>> completion, Error highlighting, and intention actions). I just
>>>> relied on the error message of ant build.
>>>>
>>>> I am using Idea build 3326 on Windows 2000 SP4
>>>> Pentium 3GHZ
>>>> 1GB RAM
>>>>
>>>>
>>>
>>> For these kinds of performance problems, please upload a CPU snapshot
>>> from the latest EAP build. It greatly helps our ability to fix these
>>> problems.
>>>
>> Let me take a simple example, just try to use Intellij to open
>> AbstractTextEditor in org.eclipse.ui.texteditor, which contains only
>> 5134 lines of codes. IDEA hangs when doing most instructions,
>> modifying or folding codes eg, and the memory usage will easily raise
>> to 1xxM. I notice the performance is poor when parsing many inner
>> classes.
Sorry, just takes a long time. I will try to produce a cpu snapshot.
Properties file editing performace is known problem. Reported to JIRA and
already fixed. Please see if the things look satisfactory in the next build.
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"