[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#762935: debsources: namespace qualified ctags



Package: qa.debian.org
Severity: minor
User: qa.debian.org@packages.debian.org
Usertags: debsources

[ originally reported by Olly Betts on #debian-devel ]

Ctags indexing is currently non-qualified, so indexing on OO langauges will not
contain class names, namespaces, etc.

To fix this we should add --extra=+q to ctags invocation. About this, the ctags
documentation says: "However, that this could potentially more than double the
size of the tag file".

Micro benchmarks:
- computation time is ~10-15% slower with +q
- size
  - libreoffice (C++)
    zack@tytso:~/ctags-bench/libreoffice-4.1.5$ wc ../libreoffice*ctags
    561396   3872260  61123731 ../libreoffice-4.1.5.ctags
    972942   6799455 117133590 ../libreoffice-4.1.5.extra+q.ctags
  - chromium-browser (C/C++)
    zack@tytso:~/ctags-bench/chromium-browser-32.0.1700.123$ wc ../chromium-browser*ctags
    1618199  10931585 205005488 ../chromium-browser-32.0.1700.123.ctags
    2472627  17064351 342772532 ../chromium-browser-32.0.1700.123.extra+q.ctags
  - linux (C)
    zack@tytso:~/ctags-bench/linux-3.12.9$ wc ../linux*ctags
    2146431  14340875 208057034 ../linux-3.12.9.ctags
    2610525  17780208 269391932 ../linux-3.12.9.extra+q.ctags

Bottom line: it's doable.  (But will need to rerun all ctags indexing after
having changed the ctags plugin code.)

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: