开发者

Is libclang slower than using clang driver based tool?

I am writing an autocompletion and syntax tool using libclang. I am pretty much using the same code as in c-index-test.c file. But the speed of results is very slow. There are few non libclang clang tools which works faster than my libclang tool.

Is there any optimization I can do to get 开发者_如何学Goresults faster? My code is pretty much as follows:

CXIndex cidx = CreateIndex(0,0);
TU = clang_parseTranslationUnit(Cidx, 0, argv, argc,0,0...); 

and so on.

Even the very first time I run clang tool, they seem to be faster.

Codebase I am working is huge.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜