Bug 52485 - twenty seconds to open code assist
Summary: twenty seconds to open code assist
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-19 11:02 EST by John Arthorne CLA
Modified: 2004-05-19 12:36 EDT (History)
1 user (show)

See Also:


Attachments
Stack trace during code assist (12.47 KB, text/plain)
2004-02-19 11:05 EST, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2004-02-19 11:02:07 EST
I20040219

After doing development in my workspace for awhile, doing simple coding and
debugging, I invoked code asist.  It took over twenty seconds for it to respond,
during which time the UI was dead.  While I was waiting, I went to the console
and obtained a stack dump, which i will attach.  It appears to be opening zip
files and searching for sources, just so it can show parameter name hints. If it
does this at all, it should really be doing it in the background to make code
assist responsive.
Comment 1 John Arthorne CLA 2004-02-19 11:05:54 EST
Created attachment 8021 [details]
Stack trace during code assist
Comment 2 Philipe Mulet CLA 2004-02-19 17:28:57 EST
Any steps to reproduce ? You must have been GC'ing or swapping...
Comment 3 John Arthorne CLA 2004-02-19 18:21:30 EST
To be more precise, the delay occurred after selecting a completion, but before
the completion actually got applied in the editor. I can't remember what I was
completing on - possibly I hit a class that I had not completed on yet during
that session, so it had to populate some caches? Also note that I work with
almost all plugins as external, with only a few core plugins in my workspace as
source.
Comment 4 Philipe Mulet CLA 2004-02-19 18:26:23 EST
Feels like a UI issue. I heard rumors about this occurring in similar 
conditions. 

FYI: JDT Core sometimes perform a quick search to find type names, but if you 
got completion proposals, our job was finished.

Moving to JDT/UI.
Comment 5 Martin Aeschlimann CLA 2004-02-20 10:20:26 EST
The stacktrace shows that there is already a proposal selected and we're
guessing arguments.
Can you disable the argument guessing (Java > Editor > Code Assist > Guess
filles argument names) and  see if that makes a difference?
If you're really sure that this ahppend before applying a proposal, can you get
a stacktrace again? In that case it would definitly be jdt.core.
Comment 6 John Arthorne CLA 2004-02-20 10:30:50 EST
As I said in comment #3, I believe I had selected a proposal, hit enter to
perform the completion, and then in froze. Unfortunately I don't remember now
exactly what I was completing on, and I can't reproduce it.
Comment 7 Martin Aeschlimann CLA 2004-02-20 11:19:15 EST
Philippe, do you have some hints why you feel it's a UI problem?
The stack trace shows that this is in the second code assist, performed to
evaluate argument proposals.
Comment 8 Philipe Mulet CLA 2004-02-20 12:27:47 EST
I remember some GC'ing issues Erich mentionned causing pauses after completion. 
There could be something wrong in our land when binding parameter names 
though, ... but without any steps it is hard to guess.
Comment 9 Erich Gamma CLA 2004-02-26 07:24:07 EST
>I remember some GC'ing issues Erich mentionned causing pauses 
>after completion. 
this problem was fixed before M7, so this cannot be the culprit
Comment 10 Philipe Mulet CLA 2004-02-26 08:06:38 EST
Moving to JDT/Core since it seems to be spending time reading parameter names 
from attached source. 

Would still need steps to reproduce.
Comment 11 David Audel CLA 2004-05-19 11:44:46 EDT
I have no test case and i can not reproduce the problem.

Closed.