[llvm-branch-commits] [clang] Speed up diagnostic state file lookup (PR #241234)

Pengcheng Wang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 11 03:24:57 PST 2026


https://github.com/wangpc-pp created https://github.com/llvm/llvm-project/pull/241234

Store File records behind stable pointers in a DenseMap instead of a
std::map. Keep dumps and serialized mappings ordered by FileID,
and create deserialized entries lazily.

Three interleaved CTMark pairs reduce median compile time by 0.218%
and geomean by 0.131%.

Assisted-by: TRAE CLI (GPT-6)





More information about the llvm-branch-commits mailing list