| Summary: | Indexer hangs on png_dynamic_io.hpp | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Stuart McDonald <a.stuart.mcdonald> |
| Component: | cdt-indexer | Assignee: | Markus Schorn <mschorn.eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | Markus Schorn <mschorn.eclipse> |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 5.0.2 | ||
| Target Milestone: | 6.0.2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Stuart McDonald
In general versions before CDT 6.0 don't work well for code with c++ templates. You need to upgrade CDT. Your specific example is a performance issue. It takes 19 minutes to index the file plus its headers. In CDT 6.0.2 or 7.0 the same code is indexed in 47 sec. When you paste the content of the header into the source file, the indexer no longer picks up some of the includes, which makes it fast but incomplete. Here are the statistics: 5.0.2: (1 sources, 601 headers) in 1,147.11 sec: 53,990 declarations; 513,881 references; 1 unresolved inclusions; 76 syntax errors; 6,453 unresolved names (1.12%) 6.0.2: (1 sources, 610 headers) in 46.62 sec: 54,017 declarations; 437,202 references; 3 unresolved inclusions; 76 syntax errors; 2,161 unresolved names (0.44%) 7.0.0: (1 sources, 610 headers) in 47.76 sec: 53,903 declarations; 437,509 references; 3 unresolved inclusions; 74 syntax errors; 2,112 unresolved names (0.43%) 5.0.2 with header pasted into source: (1 sources, 119 headers) in 2.08 sec: 8,389 declarations; 17,165 references; 5 unresolved inclusions; 0 syntax errors; 535 unresolved names (2.05%) |