[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] RE: Problem with large source files in CDT 6.0.1
|
Ok, I
think I've tracked this down. In both this case and the open declaration
case some thread (e.g., CReconciler) spends a lot of time visiting implicit
names. As far as I can tell looking at the CPPASTVistor-derived classes
used, there doesn't seem to be a way to disable this behavior. Turning off
the Semantic Highlighting for overloaded operators doesn't seem to have any
effect, for example.
I
already had to turn off the implicit name feature in the indexer properties
because it increased the indexing time from 8 minutes to 48
minutes.
Thanks,
Steve
My assumption is that there is one highlighting type
which takes most of the time.
You could try and disable one semantic highlighting type
one after the other to find out which one uses all the
CPU.
And please do file a bug report.
Thanks,
Toni
I've gathered some details on a slightly different
aspect of this problem.
A - Opening a 8500 line C++ file
B - The outline appears
C - Highlighting of types/variables
appears
I'm running this on a slowish Solaris system, which I'm
sure exacerbates the problem. In CDT 5.0.2,
the time between A & B is about 5 seconds and the time between B & C
is 1 or 2 seconds. In CDT 6.0.1, the AB interval is
again about 5 seconds, but the BC interval is 20 seconds.
For a huge 38,000 line file, BC is around 3 minutes.
I've turned on all the CDT tracing options that I know
of and for the majority of the BC interval there's no corresponding tracing
output although there's obviously something going on (CPU usage/100s of mb
of allocation/deallocation).
I tried to file a bug report yesterday but it was eaten
by a bugzilla internal error (didn't like my choosing OS & HW
=other).
Steve
We have some rather large source files (e.g, around 39,000
lines). CDT 5.0.2 handled them pretty well--after opening the file
it took about 30 seconds for the outline to show up and all the syntax
highlighting to appear. I just set up a CDT 6.0.1 install and have
found the large file handling is not working as well. After opening
a large file, the outline shows up in 30s, but it takes an additional 3-4
minutes for the highlighting on variables/types to show up. During
this time, hovers don't usually work (but oddly sometimes do). Even
worse, every F3 (open declaration) operation takes 3-4 minutes to
complete. I'm watching the heap mem usage in jconsole and it uses
and releases 200mb of memory 6 times before the operation completes.
Any ideas what's going on here?
Thanks,
Steve Kennedy