Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Scalability concerns.

> I'm using the CDT, which I really like much better than the Emacs tools  
> I've been using (gnu global, gid, etc.)  However, I have some questions  
> about scalability.  The source code for my entire product is just over  
> 13e6 lines, including comments.  Of course I don't need all of that,  
> but the main module I work on is about 1/10 of that, and then I need  
> another dozen or so smaller modules to get any work done. 
> The problem is that the CDT indexer doesn't seem to scale very well at  
> that size.  It seems to take half an hour or so, on my 12-core Xeon  
> computer, to compute the entire index.  I need to index files which are  
> not included in the build, as (1) the notion of eclipse build is kind  
> of stylized, since I never really build using eclipse, and (2) I don't  
> have enough modules included to do a full build anyway. 
> Is there anything I can do to speed things up?  I've tried the  
> scalability options, but they either miss too much to be useful, or  
> else they don't help the problem. 
> Thanks.  (And thanks for all this work.  It's really helpful for me, at  
> least.) 

First note that indexing the entire codebase only needs to be done
once; after that, CDT will update the index incrementally. So, while
it's not ideal that it takes half an hour to do the initial index,
I don't think it's the end of the world.

Having said that, you can try some of the following options to speed 
up the indexing process (note that some of them may affect some IDE 

Under Preferences -> C/C++ -> Indexer:

- uncheck "Index unused headers"
- uncheck "Index source and header files opened in editor"
- check "Skip all references" [try this last, if nothing else does it]
- check "Skip implicit references"
- check "Skip type and macro references"

Hope that helps!


Back to the top