[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:17:52 PDT 2015


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/c9a90fa2/attachment.html>


More information about the llvm-commits mailing list