Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: Delphi-BCB/IDE/Code Completion    [ Add a report in this area ]  
Report #:  74911   Status: Open
Code Insight is slow and unreliable on large project
Project:  Delphi Build #:  12.0.3420.21218
Version:    12.3 Submitted By:   George Kozaderov
Report Type:  Basic functionality failure Date Reported:  6/15/2009 5:42:59 PM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   270219
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (12 Total Ratings)
5.00 out of 5
Total Votes: 354
Code Insight sometimes doesn't work and sometimes works but with a very annoying delay of more than 10 seconds.

The attached SWF movie demonstrates that Code Insight doesn't work at all after the project was opened and then it starts working in another unit but after a long wait, then it eventually starts working in the first unit and everywhere else.

This happens only on one particular large project that has 1.2 million lines of code. Smaller projects have no such problem and Code Insight there brings the list of identifiers instantly after the dot is typed.

Delays happen randomly and are particularly long after project is just opened or compiled. This Code Insight behaviour is so common on this project that everyone on the dev team had to turn off Code Insight to be able to work without interruptions.
Steps to Reproduce:
Turn off Code Insight

Lachlan Gemmell at 7/29/2010 6:00:09 PM -
I see the problem on moderately sized applications (around 50K lines) on D2010.

Steven Kamradt at 10/14/2010 4:04:04 PM -
Also still experiencing this with Delphi XE.

Stefan Tashev at 11/12/2010 6:15:53 AM -
Delphi XE's CodeInsight is slower than D2010 on the same project ( ~500000 lines ). The project uses heavily generics and anonymous methods.

Daniel Terhell at 11/11/2011 11:18:18 AM -
So this must be a multi-million dollar bug. Every self respecting developer will trash XE(2) right away if he gets hickups of several minutes while TYPING in the editor (Core i7, 16GB, SSD).  The delay is a magnitude longer than the time required to compile the whole project.

Disabling Code Insight on XE2 is not enough to get rid of the problem, you must
disable ALL SUBFEATURES of Code Insight before Code Insight is actually switched off.

Suggestion to Embarcadero: Apply common sense and DISABLE CODE INSIGHT BY DEFAULT until this very serious problem is fixed.

Craig Reynolds at 11/23/2011 4:05:54 PM -
I've been complaining about this issue on pretty much every release of Delphi I've tried after version 7. With the new IDE came some BIG performance hits for large projects.

Our main project is 3.5+ million LOC and while DXE2 has much better performance than most of the releases of the last several years, Code Insight is still the one major area where it just DOES NOT PERFORM IN A USABLE FASHION.

Todd Asher at 1/4/2012 6:24:55 AM -
We have a large project that has 600,000 lines of code and 317 individual pas files.

The IDE reports errors that it cannot find units in the uses clauses that are part of the project! Of course this causes all sorts of erroneous errors to be displayed in the individual units.

Delphi 6 has no problems finding all these units. It does not report any errors. Why does a "more advanced" compiler over a decade newer have such problems?

I can provide screen captures for such an instance.

Márton Balassa at 2/27/2012 4:08:11 AM -
I'm using XE. Code Insight is not only slow, but doesn't work as expected either :( In many cases, when invoking Code Insight in a class's declaration, it
- does not list or mark unimplemented abstract methods
- does list interface methods even if implemented (very annoying when you try to add missing interface methods)
- does not list virtual methods, or does not add 'override' to the line when I select the method.

And the most annoying and destructive bug ever: even if all automatic features are disabled, sometimes the editor freezes and slowly eats up all available memory while typing, the only solution being to kill the process and lose some work.

Karol Bieniaszewski at 10/18/2012 1:27:41 AM -
I see this also not only in big project but also in small projects
and sometimes IDE hang after Ctrl+Space and never stop
CPU usage is then 100% of core and memory consumption never changes
For test i wait 1 hour to see if it ends but not!

I have XE2

David Novo at 8/9/2013 10:12:24 PM -
I had voted for this issue, but am now removing my vote. The code insight is much improved, in conjuction with the IDE fix pack from Andreas Hauslauden. In our 1,000,000 LOC project we can now use CodeInsight quick successfully.

We do turn off automatic invocation, and invoke it with Ctrl+space

J-L Koekemoer at 8/17/2014 9:12:12 AM -
This is still very annoyingly present in Delphi XE6. My project is barely over 10,000 lines and it sometimes takes up to 10 seconds for the CodeInsight to appear. I am totally disgusted by Embarcadero's complete ignorance of this issue for nearly 5 years now. Not even a peep from them.

Server Response from: ETNACODE01