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

clangd sometimes takes too much memory #1087

Open
alphagocc opened this issue Mar 30, 2022 · 3 comments
Open

clangd sometimes takes too much memory #1087

alphagocc opened this issue Mar 30, 2022 · 3 comments

Comments

@alphagocc
Copy link

alphagocc commented Mar 30, 2022

struct A
{
    int a, b, c;
};
A V[int(8e6)];

This code above makes clangd take about 1.8 GiB Memory
If I change 8e6 to a larger number, clangd would take more memory

Logs

No useful logs

System information

Output of clangd --version:

clangd version 14.0.0
Features: windows
Platform: x86_64-pc-windows-msvc

Editor/LSP plugin:

VS Code

Operating system:

Windows 10 Build 19044
@HighCommander4
Copy link

Likely duplicate of #967

@alphagocc
Copy link
Author

Really duplicate of #967

@alphagocc alphagocc reopened this Mar 30, 2022
@alphagocc
Copy link
Author

alphagocc commented Mar 30, 2022

Wait, seems two differrent bug.
I tried to compile the code with clang, but clang takes a little memory and is very fast
Or taking too much memory will lead to being slow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants