[llvm-bugs] [Bug 44089] New: lld uses different debug compression levels from gold
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 20 10:51:59 PST 2019
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: unassignedbugs at nondot.org
Reporter: rafael at espindo.la
CC: llvm-bugs at lists.llvm.org, peter.smith at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191120/1f952f3d/attachment-0001.html>
More information about the llvm-bugs
mailing list