On Mon, Mar 5, 2012 at 11:27 AM, Nathan Ridge
<zeratul976@xxxxxxxxxxx> wrote:
> > It's strange. I thought that "Index source and header files opened in
> > editor" should be faster then "Index unused headers" cause the amount of
> > unused headers may be significantly more than amount of opened files.
>
> My understanding (from observing the behaviour, I don't know the code) is
> that "Index unused headers" will index all the unused headers once, when
> the project is created. This takes a long times, yes. But "Index source
> and header files opened in editor" reindexes a file every time it's opened
> in the editor, so it's a constant performance drain.
>
> This is incorrect. Each file is indexed only once in both cases.
What I experience when I have "Index source and header files opened in editor"
checked, is that every time I open a file, a "C/C++ Indexer" task appears in
the Progress view. This does not happen when I have the option turned off.
What is this task doing?
This task is checking the timestamps of the files and, if they didn't change, terminates. This is done on a background thread and doesn't affect the editor. Do you see a slowdown in the editor?
Regards,
Nate
-sergey