Bug 20487 - content assist takes too long to appear in Display view
Summary: content assist takes too long to appear in Display view
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-17 14:31 EDT by Karice McIntyre CLA
Modified: 2004-09-20 14:00 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karice McIntyre CLA 2002-06-17 14:31:36 EDT
build: F3
When I invoke content assist using Ctrl-Space in the Display view, it takes a 
>10 seconds for the list to come up.

I hit a breakpoint and typed a variable in the display view, started to enter 
the first few characters of a method name, then hit Ctrl-Space.  In my 
particular case it took 15 seconds for the list of 2 methods to come up.

Doing content assist in the editor in the Debug perspective comes up in a 
reasonable amount of time, so I would expect the Display view could do it in 
the same amount of time.
Comment 1 Darin Wright CLA 2002-06-17 14:51:59 EDT
I also noticed some slow code assist in the variables view, but now I cannot 
reproduce it.
Comment 2 Darin Wright CLA 2002-06-17 15:35:22 EDT
It appears that content assist can be slow the first few times it is used on 
types that are not yet populated in the java model cache. Do you find that 
doing the same code assist operation is repeatedly slow, or only the first time?
Comment 3 Karice McIntyre CLA 2002-06-17 16:21:31 EDT
It is repeatedly slow since I first invoked code assist for completion on the 
same method in the java editor before trying code assist in the Display view.  
Just to be sure, I tried the exact same code completion (same variable, same 
method) twice in a row in the Display view and both took around 15 seconds.
Comment 4 Darin Wright CLA 2002-06-20 13:50:15 EDT
Deferred for post 2.0 investigation.
Comment 5 Paul Smith CLA 2003-07-10 01:49:50 EDT
This one is really quite frustrating.
Comment 6 Darin Wright CLA 2003-07-10 09:58:04 EDT
Paul, do you have a reproduceable test case? I do not see the problem.
Comment 7 Paul Smith CLA 2003-07-10 17:59:18 EDT
Hi Darin,

I created a brand new project, with a single class in it, and while in the Java 
Browsing perspective, setting break points is fine with a single class  in the 
project.  Even debugging this basic project is snappy setting/removing the 
break points.

However, with two other projects which have 1,400 and ~1000 source files in 
them, the snappiness is gone.  Seems to be related to the size of the project?

I could attach one the projects as an entire directory to this bug if it would 
work for you (this is the jakarta-log4j module that I am working on so it's 
Open Source), the other project is proprietary and I couldn't provide that.

I think you also responded to Bug #20487 regarding Content assist, and I'm 
thinking this is also related to the size of the debugging project.

Both projects use the same VM, Sun JDK 1.4.2. Just changed to this new VM 
recently, but we were using Sun JDK 1.4.0 for many months with the same 
problems.
Comment 8 Paul Smith CLA 2003-07-10 18:00:27 EDT
Many apologies, I confused my bug reports, my last comment should have been 
made to Bug #20355, although I do believe the symptoms are related.
Comment 9 Paul Smith CLA 2003-07-10 18:06:26 EDT
Darin,

I can confirm in my small project test case that the Content assist is 
exceptionally quick, but seems exceedingly slow in the aforementioned much 
larger projects, perhaps it is only while at a break point in a particular 
class file that causes this issue?

I will endeavour to debug our project again and see if it is only in specific 
object code where the performance varies, and if so, try to attach the source 
code for review.

cheers,

Paul
Comment 10 Darin Wright CLA 2004-08-26 10:35:44 EDT
Closing, as this test case is old. Note, I have entered bug 72683 with a test 
case in place of this bug.
Comment 11 Darin Wright CLA 2004-08-26 10:36:01 EDT

*** This bug has been marked as a duplicate of 72683 ***
Comment 12 Frederic Fusier CLA 2004-09-13 13:39:39 EDT
Cannot be a duplicate of bug 72683 which is a side effect of a post 3.0 change!

Comment 13 Darin Wright CLA 2004-09-20 14:00:45 EDT
marking as won't fix. Problem has been addresses in currently supported versions.