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

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 19 16:12:11 PST 2016


On Mon, Jan 18, 2016 at 12:13 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> >>
> >> r257017:
> >> * strtab is 3916859 bytes
> >> * link takes 0.317558552 seconds
> >>
> >> r257016:
> >> * strtab is 3812950 bytes (1.027* smaller)
> >> * link takes 0.353217270 seconds (1.11* slower)
> >>
> >> r257016 with StrTabBuilder.finalize commented out as a timing hack.
> >> * link time is 0.331792363 (1.04X slower)
> ...
>
> >
> > What's the string table size when you disabled tail merging but did
> > de-duplication?
>
> It might be 3813075 bytes. I say might because I haven't finished the
> patch and might have missed something.
>

You can just hack up StringTableBuilder so that they don't add the same
string more than once, then the resulting string table contains no
duplicates, no?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160119/1fd4a873/attachment.html>


More information about the llvm-commits mailing list