Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] CDT parsing & indexing

Title: CDT parsing & indexing

Hello,
Need some help in knowing the functioning of CDT parser

A little background first...
We saw the slow editor problem(reported by Christopher on the forum earlier) and thankfully it is resolved by moving to CDT4.0.1
But indexer was still slow for us (2-3 minutes to get code completion) until we made some changes

Initially number of directories included using "Include Paths" option was extremely large (like 650 as we have huge no of interfaces) Indexer, code navigation etc became really slow. With CDT4.0+, indexer took 1 hour to built in comparison to old CDT when it took couple of minutes and On returning to the file after code navigation, GUI was freezing  for some time. Also code completion was taking quite long.

Reducing the no of directories though keeping the number of files same as before (around 3000) did the trick for us.
And code completion, indexing and code navigation have become quite fast now. 

Just curious to know how does parser works with traversing directories included with "Include Paths" option ?
Also, How does it affect indexer and navigator ?

Is there any recommended limit for Include path directories ?

PS: We are using Eclipse europa with CDT4.0.1 now

Veenu Khanna


Back to the top