diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2021-12-09 10:47:54 +0100 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2021-12-09 11:32:13 +0100 |
commit | 13a351e862ba3f443b31fac57863625a5c43e43b (patch) | |
tree | 5e2a5368e911aa77fab71d5c63fe1668cb6521e6 /clang/lib/Format/FormatToken.cpp | |
parent | d0262c2394f46bb7da2a75529413d625c70908e5 (diff) | |
download | llvm-13a351e862ba3f443b31fac57863625a5c43e43b.zip llvm-13a351e862ba3f443b31fac57863625a5c43e43b.tar.gz llvm-13a351e862ba3f443b31fac57863625a5c43e43b.tar.bz2 |
[clang][deps] Use MemoryBuffer in minimizing FS
This patch avoids unnecessarily copying contents of `mmap`-ed files into `CachedFileSystemEntry` by storing `MemoryBuffer` instead. The change leads to ~50% reduction of peak memory footprint when scanning LLVM+Clang via `clang-scan-deps`.
Depends on D115331.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D115043
Diffstat (limited to 'clang/lib/Format/FormatToken.cpp')
0 files changed, 0 insertions, 0 deletions