On Tue, 19 Jul 2005 19:57:18 +0900, Hideki IWAMOTO wrote... > On Tue, 19 Jul 2005 06:47:35 +0900, Shigio Yamaguchi wrote... > > > The patch attached adds a converter from tags to GTAGS and GPATH. > > > > Do you think both the plug-in parser and the converter are needed? > > What merit does this patch bring? > > Hmm. > The converter from tags to GTAGS is slower than plug-in parser. > Therefore, at present, there is no merit. >
This is revised version. This version is as fast as plug-in parser. ------------------ diffstat gtags/gtags.c | 214 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gtags/manual.in | 5 + 2 files changed, 219 insertions(+) ------------------ Comparison of execution time (gtags-add-compact5.patch is also applied.) [linux-2.0.40]$ time env GTAGSLABEL=ctags-exuberant gtags 5.093u 0.793s 0:08.80 66.8% 0+0k 0+0io 0pf+0w [linux-2.0.40]$ time env GTAGSLABEL=ctags-exuberant gtags -c 5.430u 0.810s 0:07.42 84.0% 0+0k 0+0io 0pf+0w [linux-2.0.40]$ time ctags -R 2.670u 0.464s 0:03.13 100.0% 0+0k 0+0io 0pf+0w [linux-2.0.40]$ time gtags --ctags2gtags Warning: 'operator <<' ignored, because it includes blank. Warning: 'operator >>' ignored, because it includes blank. Warning: 'operator >>' ignored, because it includes blank. 5.081u 0.535s 0:08.17 68.6% 0+0k 0+0io 0pf+0w [linux-2.0.40]$ time gtags --ctags2gtags -c Warning: 'operator <<' ignored, because it includes blank. Warning: 'operator >>' ignored, because it includes blank. Warning: 'operator >>' ignored, because it includes blank. 5.143u 0.427s 0:06.95 80.0% 0+0k 0+0io 0pf+0w [linux-2.0.40]$ time make tags CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \ ctags $CTAGSF `find include/asm-i386 -name '*.h'` && \ find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs ctags $CTAGSF -a && \ find kernel drivers mm fs net ipc lib arch/i386/kernel arch/i386/mm arch/i386/lib init -name '*.c' | xargs ctags $CTAGSF -a 1.958u 0.327s 0:02.28 99.5% 0+0k 0+0io 0pf+0w [linux-2.0.40]$ time gtags --ctags2gtags 3.492u 0.277s 0:05.39 69.7% 0+0k 0+0io 0pf+0w [linux-2.0.40]$ time gtags --ctags2gtags -c 3.498u 0.279s 0:04.40 85.4% 0+0k 0+0io 0pf+0w ---- Hideki IWAMOTO [EMAIL PROTECTED]
ctags2gtags-2.patch
Description: Binary data
_______________________________________________ Bug-global mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-global
