History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-26587
Type: Performance Problem Performance Problem
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Peter Gromov
Reporter: Jacques Morel
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Using common short id for method param will cause IDEA to lock up as much as 15s while reparsing file

Created: 03 Mar 08 15:45   Updated: 14 May 08 23:12
Component/s: Editor. Code Completion, Editor. Editing Text, Editor. Error Highlighting, Editor. Intention Actions
Fix Version/s: Selena 7860, Diana 8375

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive ClickingOnIdParamOfNewConstructorOfInnerClass_takes10s.zip (2.41 Mb)
2. Zip Archive MovingCursorOnUnusedParamOfNewConstructorOfInnerClass_takes5sAnd10MB.zip (2.25 Mb)
3. Zip Archive RenamingUnusedParamOfNewConstructorOfInnerClassToCommonNameLikeId_takes15sAndLockTheEntireIDE.zip (2.41 Mb)

Environment:
WinXPSP2, JDK1.6_04
Intel Quad @ 2.7Ghz, 3GB mem, 10rpm disk

Build: 7,718
Fixed in build: 8,370
Severity: Extreme


 Description  « Hide
On code like this
class ApplicationNodeDefinition {
      String id;
      String hostName;
      int httpPort;
      ApplicationState state;
      Map properties;

      public ApplicationNodeDefinition(String id, String hostName, int httpPort, ApplicationState defaultApplicationActive, Map properties) {

         this.hostName = hostName;
      }
   }

we observe rather dismal performance while doing operation like:

  1. moving the cursor around the id parameter of the constructor: hit the left arrow and wait as much as 10s and watch memory utilization increase by 10MB and then the next arrow hit comes down 10MB again... IDEA is frozen the whole time.
  2. Alt-Enter will take usually 5s to show the menu but then needs another 10s to start responding to input. Before that it is frozen as is the whole IDEA frame.
  3. clicking in the id param will take a 6-10s full IDE pause (compared to the no delay with any other identifier or the same ctor)

This does not happen is I rename id to anId for example so it has to be related to the fact that id is short and common in our project.

I attached a few cpu snapshots for the diverse pauses I talked about.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.