[cfe-commits] [PATCH] cindex.py optimization

Francisco Lopes da Silva oblita at gmail.com
Sat Aug 18 14:56:26 PDT 2012


Hi, this patch contains optimizations for the python cindex binding, specifically for the CompletionChunk class. It tries to avoid calls to the c interface by caching the results, also, it improves internal checking by avoiding string comparisons and dictionary lookups.

This optimizations have improved in 100% the time spent by those operations in the VIM's clang_complete plugin.

For more information and data, please check https://github.com/Rip-Rip/clang_complete/pull/187#issuecomment-7825896. 

---

Francisco Lopes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120818/8c6bb5be/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cindex.py.optmization.diff
Type: application/octet-stream
Size: 2519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120818/8c6bb5be/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120818/8c6bb5be/attachment-0001.html>


More information about the cfe-commits mailing list