[lld] r257017 - ELF: Improve performance of string table construction.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 07:25:26 PST 2016


> In total, this patch improves link time of lld itself about 12%
> (3.50 seconds -> 3.08 seconds.)

That is quite slow, is in a debug build that you are linking? What is
the size of the string table if you use discard_locals? I wonder if we
are keeping more symbols than gold or bfd.

Have you tried just not calling StrTabBuilder.finalize() similar to
what we do for SHF_STRINGS sections when not optimizing? That way we
would have fast linking at -O0 and smaller tables at -O2.

Cheers,
Rafael


More information about the llvm-commits mailing list