[clang] [clang][modules] Avoid allocations when reading blob paths (PR #113984)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 28 22:04:25 PDT 2024
================
@@ -1341,9 +1341,22 @@ class ASTReader
serialization::InputFile getInputFile(ModuleFile &F, unsigned ID,
bool Complain = true);
+ /// Buffer we use as temporary storage backing resolved paths.
+ SmallString<256> PathBuf;
----------------
ChuanqiXu9 wrote:
Sounds... not too bad?
If we really want it, can we make the so-called global buffer to be a static local variable?
https://github.com/llvm/llvm-project/pull/113984
More information about the cfe-commits
mailing list