Public Report
Report From: Delphi-BCB/IDE/Performance    [ Add a report in this area ]  
Report #:  26145   Status: Open
Code Insight performance needs to be improved.
Project:  Delphi Build #:  10.0.2251.38234
Version:    10.0 Submitted By:   Randy Magruder
Report Type:  Basic functionality failure Date Reported:  3/15/2006 11:40:54 AM
Severity:    Commonly encountered problem Last Updated: 12/13/2007 3:13:52 AM
Platform:    All platforms Internal Tracking #:   239235
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
4.33 out of 5
Total Votes: 10
Description
On the load of a project, when the app is not compiled, pressing ctrl-space or "." there's a lag of anywhere from 2-5 seconds for it to come up.

After that it's okay for the most part, unless the code insight DOM gets out of date and then it's really slow again.

VS2005 is, in contrast, much quicker.

This shows up mainly in Delphi and Delphi.net work.  The larger the project, the bigger the lag.

Steps to Reproduce:
See Description.

Please just profile this and see if there's anything obvious that might speed up the popup.
Workarounds
None
Attachment
None
Comments

Bob Cope at 3/23/2006 5:02:18 PM -
Yeah, but in VS2005 you have to put up with all those uppercase IDENTITIFERS and visceral C comments and stuff.
Perhaps compile the projec to see if the project compiles before editing?
I know I'm playing devil's advocate, but please, you don't want to compare with Miserable Studio... eh?

Jan Goyvaerts at 1/19/2007 4:31:54 PM -
The only real solution would be to run Code Insight in a background thread, so that the necessary information has already been gathered when Ctrl+Space is pressed.  And if the background thread hasn't finished its job jet, Code Insight should not block the main thread to wait for it.  It should show an empty list with a "please wait..." placeholder that can be dismissed instantly.  This is particularly important in cases where Code Insight pops up automatically, but the programmer doesn't want it.  With multi-core CPUs becoming more prevalent, such background threads don't slow down the main thread.

Server Response from: CODE1