roxma / clang_complete

DEPRECATED use https://github.com/roxma/ncm2-pyclang instead
9 stars 3 forks source link

TODO: compare the performance of clang pythong binding and clang -cc1 use the fastest one #1

Closed roxma closed 6 years ago

jsfaint commented 7 years ago

I just saw this issue, maybe useful for you😁 https://github.com/tweekmonster/deoplete-clang2/issues/2

roxma commented 7 years ago

@jsfaint Thanks for the information

I'm out of time recently and this issue is kind of low priority (because it is not a bug). There is no ETA currently.

jsfaint commented 7 years ago

@roxma It's OK 😄 I'm not pushing you on this

roxma commented 7 years ago

https://github.com/roxma/ncm-clang deprecates this project. I'll stick with the clang -cc1 implementation

I haven't done the comparison, though, and non of them is much faster than the other.

There're some library dependency issues when using the python binding with a python distribution compiled against old version libstdc++, which makes me give up the python implementation.

roxma commented 6 years ago

After some more test,

I noticed that the completion gets really fast after caching the TU and an extra explicit reparse.

I don't know why it needs an explicit reparse.

current experimental repo: https://github.com/ncm2/ncm2-libclang

I'm going to test the python binding again, the official libclang python binding now supports python3.

roxma commented 6 years ago

https://github.com/ncm2/ncm2-pyclang deprecates this repo