<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - lld uses different debug compression levels from gold"
href="https://bugs.llvm.org/show_bug.cgi?id=44089">44089</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld uses different debug compression levels from gold
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rafael@espindo.la
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org
</td>
</tr></table>
<p>
<div>
<pre>When compressing debug sections gold uses compression level 1 or 9 depending on
the -O command line option:
<a href="https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gold/compressed_output.cc;hb=dd9168931facd539a585b88d7b7c6c04c8c065c2#l51">https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gold/compressed_output.cc;hb=dd9168931facd539a585b88d7b7c6c04c8c065c2#l51</a>.
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
<a href="https://github.com/ebiggers/libdeflate">https://github.com/ebiggers/libdeflate</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>