[PATCH] D135440: [SourceManager] Speedup getFileIDLocal with a separate Offset Table.
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 18 14:50:53 PDT 2022
MaskRay added a comment.
> Speedup: Linux kernel: getFileIDLocal overhead is reduced to 1.66% (~30% saving)
What's the fraction related to the whole parsing time?
> The sad bit is thatit increases SourceManager memory usage, however it is a small fraction (< 10%) of clang AST memory usage, which I think it is mostly negligible.
What's the fraction related to the whole memory usage?
Have you tried decreasing the number of linear probing (8) or switching to branch-less binary search?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135440/new/
https://reviews.llvm.org/D135440
More information about the cfe-commits
mailing list