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

Key: IDEABKL-4427
Type: Performance Problem Performance Problem
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Etienne Studer
Votes: 1
Watchers: 1
Available Workflow Actions

Mark as Stalled
Operations

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

'Find Usages' often takes minutes to complete

Created: 11 Nov 05 20:02   Updated: 09 Nov 06 20:34
Component/s: Code Navigation
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,542
Severity: Extreme


 Description  « Hide
Very often, if I call 'Find Usages' on a method, IDEA is searching for several minutes (ca. 5 minutes), even though there might be one usage only which is even in the same class.

For example, searching for usages of MyClass.getForm() (which is not overriden nor part of an interface or something like that) in 'Project Files' scope:

'Search for form...' shows up in the progress bar and moves from 1% to 2% to 3%. in baby steps.

Maybe an important detail:
The progress bar shows up twice in a row: the first one shows up and progresses very quickly and then the second progress bar shows up that starts from zero again and progresses very slowly. Maybe it searches in all text files as well...

Doing the same search several times in a row, the search time remains the same.



 All   Comments   Work Log   Change History      Sort Order:
Maxim Shafirov - 11 May 06 19:29
How common 'getForm' name is accross the project? There's known performance problems searching method usages that have very common names like add, remove, getInstance etc. Additionally, 'form' name might be common usage in jsps

Etienne Studer - 11 May 06 21:20
Doing a Ctrl-Alt-Shift-N, I see that it is defined >10 times. There are also more methods >30 like getFormXXX, e.g. getFormModel(), etc. We have a lot of .jsp >1000 on our path.

I observe two dialogs when searching for MyClass.getTable() usages:
First, 'searching for getTable()...' -> fast
Second, 'searching for table...' ->slow

In general, performance seems to be a lot better with the latest 5.1.1 release then with 5.0, though.