ilya-biryukov added a comment.

After looking at the numbers, I think we should make this configurable. I'll 
update this change accordingly. Not sure what should be the default, though. 
I'm currently erring on the side of "in-memory by default".

Current implementation eats almost twice as much memory, which quickly adds up 
(tried comparing with earlier builds on `ClangdUnit.cpp`).
Even without proper benchmarks, it's clear that if we run out of memory (and we 
easily could if run on a machine with, say, 8GB of RAM) on-disk preambles are 
an easy way out of trouble.


https://reviews.llvm.org/D39843



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

Reply via email to