Skip to main content


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 13:34
Romain Gautier is currently offline Romain GautierFriend
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 Apr 19 06:46:13 GMT 2024

Powered by FUDForum. Page generated in 0.01972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top