[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 31 22:36:49 PDT 2018


kadircet added inline comments.


================
Comment at: clang-tools-extra/clangd/index/FileIndex.cpp:91
+  for (const auto &P : FileToSlabs)
+    Result += P.second->size();
+  return Result;
----------------
Why not `bytes` here as well?


https://reviews.llvm.org/D51539





More information about the cfe-commits mailing list