[clang-tools-extra] [clangd] Speed up loading the background index from disk (PR #237760)
Nikita Taranov via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 3 06:51:02 PST 2026
nickitat wrote:
```
▎ Measured on two indexes, 3 runs each. Peak = VmHWM when the loaded index starts being served; retained = VmRSS at that point; index = $/memoryUsage → background_index.
▎
▎ | index | | peak | retained | index |
▎ |-----------------------------------|------------|--------------|--------------|--------------|
▎ | 1.4 GB in memory (19,853 shards) | main | 1862–1864 MB | 1830–1832 MB | 1386–1402 MB |
▎ | | this patch | 1860–1869 MB | 1815–1823 MB | 1386–1406 MB |
▎ | 6.3 GB in memory (100,133 shards) | main | 6971–6973 MB | 6864 MB | 6325 MB |
▎ | | this patch | 6956–6963 MB | 6898–6902 MB | 6325 MB |
▎
```
Also from looking at the code I don't see where we could hold more memory that master did.
https://github.com/llvm/llvm-project/pull/237760
More information about the cfe-commits
mailing list