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

Attachment: cindex.py.optmization.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to