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

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 19 19:38:05 PST 2016


.
>
>
> 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?

That is exactly what StringTableBuilder does. The add method checks for
duplicates and returns the index assuming no tail merge. I just need to
update lld to use the return value of add instead of always calling
finalize.

Cheers,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160119/2ec93d02/attachment.html>


More information about the llvm-commits mailing list