[PATCH] D93452: [clangd] Trim memory periodically
Quentin Chateau via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 14 11:50:09 PST 2021
qchateau added a comment.
If you look back at my original comment, you'll notice I originally trimmed the memory after `FileSymbols::buildIndex` which seemed to be the "end of the peak" memory usage, the goal was to counteract exactly what you describe: a huge memory usage when clangd warms-up and parses a lot of files in parallel.
I wonder if we can find a middle ground. The solution we finally adopted also has the advantage of being less intrusive, which is definitely great considering the nature of the issue
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93452/new/
https://reviews.llvm.org/D93452
More information about the cfe-commits
mailing list