Bug 49846 - UI Performance regression from M5 to M6
Summary: UI Performance regression from M5 to M6
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-01-12 08:51 EST by Ortwin Glück CLA
Modified: 2004-01-30 06:27 EST (History)
0 users

See Also:


Attachments
Sample file with huge comment (10.59 KB, text/plain)
2004-01-29 03:47 EST, Ortwin Glück CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ortwin Glück CLA 2004-01-12 08:51:47 EST
I have been experiencing a degradation in responsiveness of the GUI when
browsing through projects, opening and closing files, scrolling and the link. No
actual editing was done. There's a really ovious difference between M5 and M6.
The performance is now so poor that it is painful.

I have a fast machine with 640 megs of RAM.

This may as well be a problem of the Eclipse Platform UI. I can't tell if it
only affects JDT.
Comment 1 Martin Aeschlimann CLA 2004-01-14 04:47:37 EST
This has been detected and we are working on it.
Comment 2 Dani Megert CLA 2004-01-16 12:05:28 EST
Can you please try I20040113 and give us feedback whether it's improved.
Comment 3 Dani Megert CLA 2004-01-19 13:11:35 EST
Ignore comment 2. Please use an I-build > 20040119 since I added some fixes today.

Comment 4 Ortwin Glück CLA 2004-01-20 04:05:37 EST
Just tried todays IBuild. It doesn't seem any better.
Specifically:

1. Open a Java Project, use Package browser
(I have 26 projects imported in Eclipse, two are open, rest is closed, 4 are in
the active working set) 
2. Open a Java file by double clicking a class
3. move the mouse over the source code (especially large comments)

-> CPU usage goes to 100 % while moving the mouse cursor

1. Open a Java file by double clicking a class
2. Move mouse to the source code window
3. Move mouse back to the Package browser

Do this repeatedly and try how fast you can open files. 

-> This seems to eat a lot of CPU 
Comment 5 Dani Megert CLA 2004-01-20 04:15:22 EST
>Just tried todays IBuild. It doesn't seem any better.
>Specifically:
You must be some kind of a wizard then since todays I-build is not yet available ;-)
You probably tried the last one which - according to comment 3 - does not yet
contain the fixes.

Comment 6 Ortwin Glück CLA 2004-01-20 04:57:00 EST
Sorry, I downloaded I20040113. So I'll try again when the next I-Build is available.
Comment 7 Marc Gerstmair CLA 2004-01-21 05:51:18 EST
I experienced exactly the same on W2K with M6.
What I noticed is that the AST tree was built quite often, even if I did 
nothing. Scrolling with the mouse wheel was painfully slow and code completion 
too.

But I installed M6 over M4.
After deleting everything and starting from scratch (even reinstalling the 
plugins again) the problem does no longer exist.


Is there any page to see which interfaces or code fragments have changed in 
order to guess which plugin might interfere (except of CVS)?
Comment 8 Dani Megert CLA 2004-01-21 06:37:28 EST
>Is there any page to see which interfaces or code fragments have changed in 
>order to guess which plugin might interfere (except of CVS)?
Not sure what you mean here. There's a new and noteworthy document and a
migration guide but this only handles API stuff. CVS is the way to go/compare.
Comment 9 Marc Gerstmair CLA 2004-01-21 07:51:57 EST
OK. Thank you. Was looking for a migration guide...
Comment 10 Dani Megert CLA 2004-01-22 05:10:55 EST
Can you please switch to I20040121 and provide feedback regarding this PR. Thanks.
Comment 11 Marc Gerstmair CLA 2004-01-23 11:23:02 EST
We tested
a) I20040121 over M4: works
b) I20040121 over M6: works

AST calculation is only done when it's necessary. It seems to be faster than in 
M4. Switching between different Java files is no problem at all.

Thank you.
Comment 12 Dani Megert CLA 2004-01-23 11:26:58 EST
Ortwin, please reopen if you disagree.
Comment 13 Ortwin Glück CLA 2004-01-28 11:59:52 EST
Okay, main issues verified fixed.

Still getting 100% CPU load when moving the mouse cursor over a comment section
(in my case the Apache License at the top of the file).
Comment 14 Dani Megert CLA 2004-01-28 12:42:11 EST
Just the first time or every time?
Just by hovering, or do you click?
Comment 15 Ortwin Glück CLA 2004-01-28 13:54:57 EST
Everytime. I was only moving the mouse without clicking. As soon as I stop
moving the mouse the CPU load goes back to normal.
Comment 16 Dani Megert CLA 2004-01-29 03:15:53 EST
Is this Javadoc, single-line or block comment?
You say Appache License, is the file you look at in a JAR or a class file? If
so, we're not talking about the Java editor but the Class File editor.

Could you attach the file which causes the problem?
Comment 17 Ortwin Glück CLA 2004-01-29 03:45:57 EST
It is a large block comment like:

/*
 * text
 *
 *
 */

The file is not packaged in a JAR file. It is a simple .java File on the file
system. I am working on the Jakarta HttpClient, so I have checked out the
Repository. The Apache license occurs in every single file. I will attach a
sample in a minute.
Comment 18 Ortwin Glück CLA 2004-01-29 03:47:28 EST
Created attachment 7624 [details]
Sample file with huge comment

Open file in Java Editor and move mouse over the License terms to get a high
CPU load.
Comment 19 Dani Megert CLA 2004-01-30 06:27:15 EST
Filed bug 50952.