CLion very slow when including the Windows API header

已回答

I am planning on purchasing CLion, as I have tried it and I like the refactoring but I am planning to use it on projects to do with the Windows API (windows.h) which makes CLion becomes extremely slow.

For example, when I try to type the first characters of anything in general (function, variable, macro, etc.) and wait, the autocomplete takes around 2-3 seconds to pop up. If I do continue typing then the autocomplete just becomes even slower and doesn't load until I stop typing. The syntax highlighting also takes around 2 seconds to highlight functions, macros, etc.

(The speed of the editor is also similar when including other big header files)

The autocomplete and syntax highlighting in the Visual Studio Code editor is also far faster but it does not have the fantastic refactoring capabilities that is in CLion.

I have set the 'Xmx' to 4000m and the 'Xms' to 3500m but that only barely improves the speed.

0

Hello!

In the recent CLion 2019.2 EAP we've improved performance for code completion. Could you please try using it? 

As for the Xmx option: have you enabled memory indicator (File | Settings | Appearance & Behavior | Appearance | Show memory indicator)? If no, please enable it and keep an eye on it for some time (the indicator will appear in the bottom right corner of the CLion window). If it is close to the limit at the time when you are experiencing the problems, then it may be worth increasing the Xmx JVM option even more.

0
Avatar
Permanently deleted user

Hi, Thanks for the reply.

I have just installed the new EAP of CLion. The autocomplete is noticeably faster but it still feels slower than other IDEs/editors like Visual Studio. I also have enabled the memory indicator and it seems that the memory never exceeds 3200M.

0

Please capture a CPU snapshot while reproducing the issue and send it to clion-support at jetbrains.com. 

0

请先登录再写评论。