Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CDT Index grows without bound?

I have created a new bug for this issue at:  https://bugs.eclipse.org/bugs/show_bug.cgi?id=320426

Thanks again Markus

On Tue, Jul 20, 2010 at 2:50 AM, Schorn, Markus <Markus.Schorn@xxxxxxxxxxxxx> wrote:
You can create a bug for that here:
 
Markus.


Sent: Monday, July 19, 2010 5:34 PM

To: CDT General developers list.
Subject: Re: [cdt-dev] CDT Index grows without bound?
Importance: Low

Hi Markus, thanks for your reply.

I would be happy to track the status of this bug.  Is there a bugzilla post that I can follow for this particular issue?

Thanks

On Tue, Jul 13, 2010 at 1:22 AM, Schorn, Markus <Markus.Schorn@xxxxxxxxxxxxx> wrote:
Hi,
this is certainly a bug and we should figure out what happens. A good start would be to reproduce the behavior
with a project as small as possible.
Markus.


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of M K
Sent: Monday, July 12, 2010 8:22 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] CDT Index grows without bound?
Importance: Low

Greetings,

I have an issue that I wanted to post to this mailing list in order to confirm whether or not it is a bug.

I am working with a codebase of 100K+ files. Recently, I've setup up an environment to navigate the code in CDT 7.0 in Eclipse 3.6. I linked all of the code under a single Makefile project, and then I built an index on the project. While the indexer was running, I found this link that describes the indexing options: http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg10390.html. The indexer took about an hour or two to finish, and ever since I've been repeating the following procedure:

1. Open "C/C++ Index" View, right click project, click "Count Symbols". This takes about 5-10 min to complete.
2. In "C/C++ Index" View, right click project, click "Index" -> "Freshen All Files". This takes about an hour or so to complete.

Each time I freshen the index, my symbol count increases substantially. I've done over 10 refreshes now, and it is still growing at about a linear rate upon each refresh, giving no indication that it will eventually stop growing. My index is now over 1GB in size, whereas the initial index creation resulted in about 500MB, and each successive refresh adds about 50-150MB in size.

My question(s) are:
* Is this behavior known to occur?
* How many times can I expect to refresh before I can be confident that as many symbols as possible are captured?
* I've noticed after some refreshes that, for example, my "symbols" count will go up but my "declarations" and/or "definitions" count will go down - is this also expected behavior?
* Can I share a pre-built index with other developers working on the same code base without issue, so that they don't have to spend 10+ hours refreshing their indexes?

My indexing preferences are specified as follows:

(CHECKED) "Enable Indexer"
(CHECKED) "Index source files not included in the build"
(CHECKED) "Index unused headers"
(
CHECKED) "Allow heuristic resolution of includes"
"Skip files larger than [9999] MB"
(unchecked) "Skip all references"
(unchecked) "Skip implicit references"
(unchecked) "Skip type and macro references"
(CHECKED) "Automatically update the index"
(CHECKED) "Update index immediately after every file-save"
(SELECTED) "Use the build config specified in project's indexer settings"
"Limit relative to the maximum heap size: [25] %"
"Absolute <database cache> limit [1000] MB"
"Absolute <header file cache> limit [1000] MB"

Note that I am able to navigate the code quite nicely, and have not found many instances where CDT couldn't find a symbol. Nonetheless, this seems unusual.

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top