Bug 53622 - [Scalability]: Content Assist on windows.h takes 16 seconds
Summary: [Scalability]: Content Assist on windows.h takes 16 seconds
Status: VERIFIED DUPLICATE of bug 59468
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.0   Edit
Assignee: Hoda Amer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-03 10:53 EST by Mathieu Lapensée CLA
Modified: 2004-06-10 16:09 EDT (History)
3 users (show)

See Also:


Attachments
project (197.33 KB, application/x-zip-compressed)
2004-03-03 10:54 EST, Mathieu Lapensée CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Lapensée CLA 2004-03-03 10:53:19 EST
Build Workbench 040226.

Content Assist on windows.h takes 16 seconds

Steps:
1) Load attach project
2) Open ManyFunctions_3.cpp
3) In the last function, type DOU<ctrl-SPACE>

Takes 16 seconds for Content Assist to come up.  By the way the content was 
wrong as well.
Comment 1 Mathieu Lapensée CLA 2004-03-03 10:54:04 EST
Created attachment 8303 [details]
project
Comment 2 John Camelon CLA 2004-03-03 15:34:27 EST
Hoda, please add in the appropriate time-out.  
We shall look into providing you an asynchronous interface so you can get 
partial results in lookup().  
Comment 3 Hoda Amer CLA 2004-03-09 15:11:59 EST
Mathieu, James,
Please re-try this with today's version (March 9th,2004)
Dave has just submitted a fix for the scanner and he claims that now windows.h 
takes only 3 seconds :-)
Comment 4 Hoda Amer CLA 2004-03-25 13:58:04 EST
Fixed in HEAD, mar. 24th, 2004
A preference has been added to the content assist page for timeout, default = 
3 sec.
As we can not control the size of projects and the parsing time no matter what 
we do, we have to provide a means by which the user is capable of cancelling 
content assist and returning back to editing. The user should be advised to 
set the timeout limit proportional to the mean size of the projects he 
normally works on (in the documentation, help, and/or FAQ).
Comment 5 Mathieu Lapensée CLA 2004-04-16 15:34:25 EDT
We will need to document this very clearly in the online help and maybe the 
FAQ (Is this a good question to add, DavidD?)

The problem is that a user would still want to have the content of the 
Windows.h even if it times out.  The user would have a hard time in finding 
the Time out threshold preference because it is buried in the preferences 
dialog.

Can we make this more usable.  Opinions?
Comment 6 Mathieu Lapensée CLA 2004-06-10 15:31:36 EDT
Update:

With the timeout set at 3 seconds, Content assist times out on the first try 
but does not timeout on the second try.

Reopening.
Comment 7 Hoda Amer CLA 2004-06-10 15:43:07 EDT
Mathiew
Is this re-opened for documentation? or for a required better performance?
Comment 8 John Camelon CLA 2004-06-10 15:49:00 EDT

*** This bug has been marked as a duplicate of 59468 ***
Comment 9 Mathieu Lapensée CLA 2004-06-10 16:09:03 EDT
I accept the duplicate.  It was for performance.