Files
llvm-project/llvm/lib/ProfileData/SampleProf.cpp
Max b9b9a239df [ProfData] Improve efficiency of reader (#169730)
Pre-reserve space in the map before inserting. In release builds, 9.4%
of all CPU time is spent in llvm::sampleprof::ProfileSymbolList::add. Of
that 9.4%, roughly half is in llvm::DenseMapBase::grow.

---------

Co-authored-by: mxms <mxms@google.com>
Co-authored-by: Vitaly Buka <vitalybuka@gmail.com>
2025-12-01 12:22:08 -08:00

22 KiB