Go to java type is slow

Hello,

I noticed that when you use the Go to java type (Ctrl+N) popup, it works very slow when the matching types are very large classes. I think this is because when you go trough the matched items with the up/down arrows, the structure of that file is displayed in the structure view. Can this behavior be disabled? If so, where do I find this option.

If no such option exists, is it hard to implement? This option could really speed up the development in the case of large projects with large source class source code. I even have classes that contain 8000 lines of code. In the latest EAP version, the editing of such classes is much faster than before. I also disabled most of the inspections in order to speed it up. It was still a little slow.

Another thing that could be beneficial, would be to have options for the inspections to only show them when inspecting the code using Analyze menu->Inspect code, and not when performing on the fly inspections. Disabling the inspections caused a speed gain more speed, but one would still want to see those inspections when performing a full code analysis.

Thanks,

Chris

6 comments
Comment actions Permalink

Hello Cristian,
it is possible to configure to use empty inspection profile for your editor
and still use your default profile to inspect via Analyze|Inspect Code

It is possible to Ctrl-Shift-N to find java files but it would be better
if you can provide us a snapshot as I am not sure what can be slow there.

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hello,

I noticed that when you use the Go to java type (Ctrl+N) popup, it
works very slow when the matching types are very large classes. I
think this is because when you go trough the matched items with the
up/down arrows, the structure of that file is displayed in the
structure view. Can this behavior be disabled? If so, where do I find
this option.

If no such option exists, is it hard to implement? This option could
really speed up the development in the case of large projects with
large source class source code. I even have classes that contain 8000
lines of code. In the latest EAP version, the editing of such classes
is much faster than before. I also disabled most of the inspections in
order to speed it up. It was still a little slow.

Another thing that could be beneficial, would be to have options for
the inspections to only show them when inspecting the code using
Analyze menu->Inspect code, and not when performing on the fly
inspections. Disabling the inspections caused a speed gain more speed,
but one would still want to see those inspections when performing a
full code analysis.

Thanks,

Chris

---
Original message URL:
http://www.jetbrains.net/devnet/message/5256187#5256187



0
Comment actions Permalink

Hello Anna,

I cannot send you a snapshot because this is the company's computer and I cannot disclose any information.

The problem I think is because we use some large classes, some are over 8000, some even more. When one of those classes is the first in the matching list, while the structure view is populated, the application kind of hangs. The system I use is a pretty fast one, it's Intel Core 2 Quad Q6600 with 8GB of ram, and Idea is launched with -Xms512m and -Xmx1024m. So you see, the system cannot be the problem here. I think a good thing would be to populate the structure view after say 2 seconds after the class/entry has been selected. This way you could avoid loading the structure for classes that are of no interest to the user. So, if the user does not change the selection in the list for 2 seconds you can assume he/she is interested in the class.

The workaround you suggested, the Go to file, can be used in a normal usage scenario, but in our case, we have many files that have the same name, and different extensions (we work with Wicket a lot, and in Wicket, for each class there is a html file associated).

I appreciate the structure view while searching for classes, but not if it kicks in instantly and on large classes.

I have made a video of how Idea loads the structure view when I browse the files, but I will send it to you by email only. I know there is no support for the community edition, but I think this is in your best interest.

Let me know how to contact you.

Best regards,
Cristian Trohin

0
Comment actions Permalink

Hello again,

Today I decided to conduct a little experiment with Idea. I closed the Structure view, and tested how editing those large files worked. It's a bliss now. The Ctrl+N quick open type works perfectly now, no hangs whatsoever. I won't use the structure view for the moment, but instead use the File structure popup when I need the structure.

I don't know how that view is populated, but it looks like you guys populate it on each edit. You could add an option somewhere to only refresh the structure view when the file is saved. That could help people like me, who work with large files. You can also consider lowering the priority of the thread that populates the structure view, so it won't look like it temporarily hangs the app.

Best regards,
Cristian Trohin

0
Comment actions Permalink

I have the same problem in 9.0.2 and 9.0.3 even when Structure window is closed.  Typing and selecting in the "go to class" popup is very painful.
I'll open a bug.

0
Comment actions Permalink

Hm.. I don't have any problem with IDEA 9.0.3 on quad core workstation.

However, I noticed if I have Structure pane open and then invoke goto class ALT+SHIFT+G, as I press UP/DOWN in the Class selection popup list, the Structure pane is updating.
Is that supposed to be a feature?  Because, I think the Structure Pane should continue to show the structure of the current class in the editor pane, not the class you have highlighted in the Class selection popup list.  The structure pane should only update once you press ENTER to select the class.  That would fix Cristian's problem.

I'm wondering if the Goto Class always worked like this with Structure Pane, or was it changed at some point?  I don't know since I rarely open up the structure pane.  In any case, it looks like a bug to me.

-Alex

0

Please sign in to leave a comment.