-
Notifications
You must be signed in to change notification settings - Fork 59
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
a big array of structure will make clangd very slow #967
Comments
I suspect this is the upstream bug llvm/llvm-project#51054 |
I relanded the fix from that bug but it still feels sluggish.
|
This problem still exists, even on 18.1.3. #include <bits/stdc++.h>
struct s_t {
};
// Large memory consumption: 6+GB
// std::pair<int, int> tree[int(10e7)];
// s_t tree[int(10e7)];
// No effect
// int tree[int(10e7)];
int main() {
} Uncomment corresponding lines to see the effect. For For |
for example:
then clangd will be slow
The text was updated successfully, but these errors were encountered: