https://bugs.llvm.org/show_bug.cgi?id=44089

            Bug ID: 44089
           Summary: lld uses different debug compression levels from gold
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: raf...@espindo.la
                CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org

When compressing debug sections gold uses compression level 1 or 9 depending on
the -O command line option:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gold/compressed_output.cc;hb=dd9168931facd539a585b88d7b7c6c04c8c065c2#l51.

lld always uses 6. Given how slow compression is, this can make lld slower than
gold in some binaries:

gold:
  50.227894814 seconds time elapsed

lld:
  82.169791294 seconds time elapsed
lld modified to use level 1:
  32.296242877 seconds time elapsed

It might also make sense to use a faster zlib implementation like
https://github.com/ebiggers/libdeflate

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to