Using --line-directives one can let ctags catalogue
C/C++ preprocessor output files. These files generally
contain the same #include files over and over again.
ctags wastes valuable time and space processing the
same contents repeatedly. Duplicate symbol tags are
only removed on the final sort.
The attached patch eliminates this by adding a file
lookup table and keeping track of the max line number
(recursive #includes) and ensuring unique file
In a real example (the KDevelop project) this reduces
processing time from 41s to 12s and eliminates some
29'000 duplicate tags up front.
Add option to switch this on/off.
BUGS and LIMITATIONS:
The method does not work correctly if the #defines
for conditional compilation (#ifdefs) is used to
switch on/off fragments of #include headers and is not
identical between different source files.
Log in to post a comment.
Sign up for the SourceForge newsletter:No, thanks