[cfe-dev] Clang indexing library performance
Tobias Grosser
tobias at grosser.es
Sun Oct 2 03:38:57 PDT 2011
On 10/02/2011 10:06 AM, Alexander Bolodurin wrote:
> On 02/10/2011, at 10:34 AM, Tobias Grosser wrote:
>
>> > On 10/01/2011 10:34 AM, Alexander Bolodurin wrote:
>> > Can you send me your new results, either only with the parse() change, and then with both the parse() and the complete() change.
>> >
>> > Thanks and cheers
>> > Tobi
> parse only:
>
> parse 3.55141305923
> complete 2.60280609131
> complete 2.53132414818
> complete 2.54255604744
> complete 2.50854682922
>
> parse + complete:
>
> parse 3.58968901634
> complete 2.62985301018
> complete 2.55927109718
> complete 2.54651212692
> complete 2.55211901665
OK. This is not very convincing.
> I have also tried to eliminate the middlemen completely and use C interface directly using this tool:https://gist.github.com/758615 from this clang_complete bug report:https://github.com/Rip-Rip/clang_complete/issues/17 which you have already read, as I can see.
OK. Let's get a common baseline. Can you run the complete tool (from the
bug report) on the attached boost.cc file (taken from the very same bug
report, you need boost installed) and compare it with my results.
------------------------------------------------------------
> export LIBCLANG_TIMING=1
> $./a.out boost.cc 16 10 > /dev/null
Parsing boost.cc: 1.3400 (100.0%) 0.1000 (100.0%)
1.4400 (100.0%) 1.4527 (100.0%)
Precompiling preamble: 1.8800 (100.0%) 0.0900 (100.0%)
1.9700 (100.0%) 1.9999 (100.0%)
Reparsing boost.cc: 2.0800 (100.0%) 0.1200 (100.0%)
2.2000 (100.0%) 2.2548 (100.0%)
Code completion @ boost.cc:16:10: 0.1800 (100.0%) 0.1800 (100.0%)
0.1901 (100.0%)
------------------------------------------------------------
The autocompletion takes for me 0.20 seconds and is significantly
shorter than the parsing. Do you get something similar?
Cheers
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boost.cc
Type: text/x-c++src
Size: 353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111002/d7492613/attachment.cc>
More information about the cfe-dev
mailing list