[cfe-dev] Announcing Crange

Renato Golin renato.golin at linaro.org
Fri May 9 06:22:05 PDT 2014


On 9 May 2014 13:08, Anurag <gnurag at gmail.com> wrote:
> The source metadata collected by Crange can help with building tools
> to provide cross-referencing, syntax highlighting, code folding and
> deep source code search.

Hi Anurag,

This sounds like a very useful tool. We did something similar (Clang,
SQLite, cross-references) but never got around releasing anything.


> Running crtags on Linux kernel v3.13.5 sources (containing 45K files,
> size 614MB) took a little less than 7 hours (415m10.974s) on 32 CPU
> Xeon server with 16GB of memory and 32 jobs. The generated tags.db
> file was 22GB in size and contained 60,461,329 unique identifiers.

Did you compare against CTags/ETags? IDEs indexing services (Eclipse,
CodeBlocks, etc)?

I know the depth you get with Clang is orders of magnitude more than
ctags, but ctags finishes all my projects in a couple of minutes. I'd
only accept 28 hours (I only have 8 CPUs) if it did my morning coffee
and toast, too. :)

I'm also guessing that this is a full run, and that when files change,
a partial run (only regarding the changed files) would run a lot
faster.

Also, for comparison, I used to have a ctags re-run once files were
saved on the disk when my editor was spawned (part of the start
script) and it would always take seconds. I think it's only when it
gets to that level that people will actually look more seriously
towards your tool...

cheers,
--renato



More information about the cfe-dev mailing list