ilya-biryukov added a comment.

~1% increase in memory usage seems totally fine. Actually surprised it's that 
small.
Overall LG, just a single comment about extra copying. Thanks for the change, 
looks like a great improvement!



================
Comment at: clangd/index/FileIndex.cpp:84
+    Merged.insert(Macro);
+  for (const auto &Sym : Collector.takeSymbols())
+    Merged.insert(Sym);
----------------
Why make an extra copy of the symbols? Why not add macros to the same builder 
used in collector?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52078



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to