Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Questions about indexing time(Long indexing time with huge projets, how to reduce it?)
Questions about indexing time [message #1089292] Sun, 18 August 2013 09:34
Romain Gautier is currently offline Romain Gautier
Messages: 1
Registered: August 2013
Junior Member
Hello,

I experiment a long indexing time on some projects with CDT. I imported a project which contains ~20k of .c source file for testing purposes. The index takes around 10 minutes to build. Here is the statistics:

C/C++ Indexer: Project 'v9fs' (21004 sources, 22188 headers)
    Options: indexer='PDOMFastIndexer', parseAllFiles=true, unusedHeaders=useCPP, skipReferences=false, skipImplicitReferences=false, skipTypeReferences=false, skipMacroReferences=false.
    Database: 766623744 bytes
    Timings: 642509 total, 331622 parser, 61915 resolution, 173540 index update.
    Errors: 140 internal, 1475 include, 2304 scanner, 119141 syntax errors.
    Names: 3997964 declarations, 20235643 references, 453549(1,84 %) unresolved.
    Cache[64MB]: 1045185358 hits, 1941955(0,19 %) misses.
Indexer: completed PDOMRebuildTask[706964ms]


Seeing index update taking a lot of time I allocated more memory for index cache but the results are pretty much the same:

C/C++ Indexer: Project 'v9fs' (21004 sources, 22188 headers)
    Options: indexer='PDOMFastIndexer', parseAllFiles=true, unusedHeaders=useCPP, skipReferences=false, skipImplicitReferences=false, skipTypeReferences=false, skipMacroReferences=false.
    Database: 766623744 bytes
    Timings: 624435 total, 320358 parser, 61568 resolution, 174150 index update.
    Errors: 140 internal, 1475 include, 2304 scanner, 119141 syntax errors.
    Names: 3997964 declarations, 20235643 references, 453549(1,84 %) unresolved.
    Cache[474MB]: 1047113618 hits, 13695(0,00 %) misses.
Indexer: completed PDOMRebuildTask[624845ms]


I would like to have your feedback about these statistics. Especially, I have a few questions:

- What is the meaning of resolution timing precisely? I guess it stands for resolving types, references and symbols, is that correct?
- Why does the index update take so long, even after allocating more space to the cache?
- What would you do in order to improve indexing time with huge projects?


I am using Eclipse Juno with CDT8.1

Regards,
Romain Gautier.
Previous Topic:User-defined include path recursive?
Next Topic:Indexer vs source templates
Goto Forum:
  


Current Time: Fri Aug 01 09:59:26 EDT 2014

Powered by FUDForum. Page generated in 0.01471 seconds