[lld] r250463 - ELF2: Do not treat .strtab specially when creating sections.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 13:08:11 PDT 2015


> Total number of function calls did not change. Previously, we call two
> functions from one for-loop, and now they are called separately from two
> for-loops. So the cost by this change is one for-each loop and no more than
> that. If that's a complex data structure, I would probably care, but this is
> a std::vector. I believe that that's extremely cheap.

Sure, and we are indeed still very fast. I just wanted to mention the
possibility.

btw, we do have a test in test/elf2/many-sections.s. Currently we take
0.1s to link it, gold takes 21s :-)

Cheers,
Rafael


More information about the llvm-commits mailing list