aboutsummaryrefslogtreecommitdiff
path: root/libcxx/modules/std/text_encoding.cppm
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-08-09 10:02:51 -0700
committerJan Svoboda <jan_svoboda@apple.com>2023-08-09 10:19:36 -0700
commitdcd3a0c9f13b551ca2bcefa0dd181a383f44df49 (patch)
tree8b59d077dec0fc3b9065759f8b3fbecbea9bc675 /libcxx/modules/std/text_encoding.cppm
parent6556e2902570bd7239f61bf990d8cd942ed32d3b (diff)
downloadllvm-dcd3a0c9f13b551ca2bcefa0dd181a383f44df49.zip
llvm-dcd3a0c9f13b551ca2bcefa0dd181a383f44df49.tar.gz
llvm-dcd3a0c9f13b551ca2bcefa0dd181a383f44df49.tar.bz2
[clang][modules][deps] Create more efficient API for visitation of `ModuleFile` inputs
The current `ASTReader::visitInputFiles()` function calls into `FileManager` to create `FileEntryRef` objects. This ends up being fairly costly in `clang-scan-deps`, where we mostly only care about file paths. This patch introduces new `ASTReader` API that gives clients access to just the serialized paths. Since the scanner needs both the as-requested path and the on-disk one (and doesn't want to transform the former into the latter via `FileManager`), this patch starts serializing both of them into the PCM file if they differ. This increases the size of scanning PCMs by 0.1% and speeds up scanning by 5%. Reviewed By: benlangmuir, vsapsai Differential Revision: https://reviews.llvm.org/D157066
Diffstat (limited to 'libcxx/modules/std/text_encoding.cppm')
0 files changed, 0 insertions, 0 deletions