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

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 13:22:55 PDT 2015


BTW, at some point we should set up a perf bot to keep eyes on runtime
performance. "Just works" and "faster" would be two big reasons to switch
the linker. We are currently checking only the former on every commit.

On Fri, Oct 16, 2015 at 1:17 PM, Rui Ueyama <ruiu at google.com> wrote:

> On Fri, Oct 16, 2015 at 1:08 PM, Rafael EspĂ­ndola <
> rafael.espindola at gmail.com> wrote:
>
>> > 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 :-)
>>
>
> Nice! :)
>
> Our code should be linear to the number of output sections. gold seems to
> be super-linear to that.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151016/40f6d8d3/attachment.html>


More information about the llvm-commits mailing list