https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96780

--- Comment #12 from Patrick Palka <ppalka at gcc dot gnu.org> ---
I should mention I noticed a significant reduction in compile time, memory
usage and unstripped object file size in some cases with the proposed patch at
https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591091.html.

For instance, for the range-v3 test file
test/algorithm/set_symmetric_difference4.cpp compiled with -O2 -g and a
non-checking compiler, compile time/GC allocations/object file size decreases
from
  8.29s/551M/3508K
to
  8.00s/541M/3104K.

The object file size decrease (naively measured with du) here is particularly
surprising, nearly a 12% decrease.  I suppose this means debug info for inlined
calls to std::move/forward accounts for >=12% of the debug info size, which we
no longer emit with the patch.

Reply via email to