speed up auto completion

Answered

Hi Folks,

I there any option to speed up auto-completion or method listing for a given type in CLion. 


I understand that for the complex project, it probably need to build some sort of graph but for std namespace generally, you can pre-cache everything.

It can be observed when you type string s and then s. It builds a list of all methods each time.

In golang it takes a millisecond in C++. It takes like a 2-3 second sometimes.

Generally, if you type string s();


s.l -> that should immediately show you all methods starting from l and not building a list for 3 seconds.  

I there any option, I can speed up that process.

Thank you.

1 comment
Comment actions Permalink

Hi!

In CLion 2019.3 EAP we've introduced clangd-based code completion: https://blog.jetbrains.com/clion/2019/09/clion-starts-2019-3-eap/#clangd_based_code_completion. Please try using the EAP build, it can be downloaded here - https://www.jetbrains.com/clion/nextversion/. Note that you don't need to uninstall the stable version in order to test the EAP build - they can be installed side-by-side.

0

Please sign in to leave a comment.