Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliSense parsing extremely slow #8490

Closed
xolom opened this issue Dec 6, 2021 · 2 comments
Closed

IntelliSense parsing extremely slow #8490

xolom opened this issue Dec 6, 2021 · 2 comments

Comments

@xolom
Copy link

xolom commented Dec 6, 2021

We have a rather big codebase for our embedded system C++ project. The biggest part are the generated files which represents the hardware in software. Those files are pretty big (11MB and 190k lines) and we need them in almost every translation unit (.cpp file). Parsing one file takes approx 20-30 seconds. As soon as another .cpp file is opened, parsing starts again. Browsing through the code with "Goto definition" is pretty troublesome.
I checked how big the generated IPCH files are and for each .cpp file the cache file is ~1GB, which is too much and therefore i disabled the IntelliSense cache.
As a trade-off, we now switched over to "Tag Parser" Engine which is way faster, but less accurate.

The question now is: Is it possible to optimize the settings somehow to improve the parsing runtime? Something line using precompiled headers for only manually defined files?

@sean-mcmanus
Copy link
Contributor

We have a feature request tracking enabling precompiled headers to improve IntelliSense speed at #3628 .

@Colengms
Copy link
Contributor

Colengms commented Dec 7, 2021

Closing duplicate.

@Colengms Colengms closed this as completed Dec 7, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants