[all-commits] [llvm/llvm-project] 9ffeaa: [LLD] [COFF] Use StringTableBuilder to optimize th...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Mar 1 08:44:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ffeaaa0ea54307db309104696a0b6cce6ddda38
      https://github.com/llvm/llvm-project/commit/9ffeaaa0ea54307db309104696a0b6cce6ddda38
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M lld/COFF/Writer.cpp

  Log Message:
  -----------
  [LLD] [COFF] Use StringTableBuilder to optimize the string table

This does tail merging (and deduplication) of the strings.

On a statically linked clang.exe, this shrinks the ~17 MB string
table by around 0.5 MB. This adds ~160 ms to the linking time
which originally was around 950 ms.

For cases where `-debug:symtab` or `-debug:dwarf` isn't set, the
string table is only used for long section names, where this
shouldn't make any difference at all.

Differential Revision: https://reviews.llvm.org/D120677




More information about the All-commits mailing list