clangd
clangd copied to clipboard
Clangd being questionable with memory
Im using clangd on a pretty small code as LSP inside nvim and I see it stays at around 500MB of memory idle and when i query something it just allocates 1GB of additional memory does some calculations using 50% of my cpu and responding to the query after 5 seconds and then it just deallocates the additional memory and goes back to 500MB. I think this weird memory usage is the reason of this huge delay. Is there any way to allocate more memory and cache more stuff on the ram itself?
If you're still experiencing this, it would help to provide:
- Clangd logs to show what queries / operations you're performing (and indicate one example of a slow query).
- (If possible) an example project that demonstrates the issue.