<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 - wasm32: Slowdown with large amount of relocations (?)"
   href="https://bugs.llvm.org/show_bug.cgi?id=38650">38650</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wasm32: Slowdown with large amount of relocations (?)
          </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>All
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alex@crichton.co
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, sbc@chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When working with some wasm tools earlier today I realized that for one of our
compilations in rust-lang/rust it takes LLD around 4 seconds to finish. I was
quite surprised at this runtime because typically our linker invocations are
quite speedy (under 1s most of the time, even non-incremental).

A gist [1] contains a tarball with a reproduction script and all the necessary
files and there's also a direct link [2] to the tarball itself. 

I do realize though that this is quite a large test case, there's ~100MB of
input files which is generating ~20MB of an output. I suspect though that there
may be some low hanging fruit to clear out though to improve link time here!


[1]: <a href="https://gist.github.com/alexcrichton/cd4736e3faebbc7e45609a8b82a77d2a">https://gist.github.com/alexcrichton/cd4736e3faebbc7e45609a8b82a77d2a</a>
[2]:
<a href="https://gist.github.com/alexcrichton/cd4736e3faebbc7e45609a8b82a77d2a/raw/e92638fb6f6706c7ada3567e232358cba00993b8/slow-lld-invocation.tar.xz">https://gist.github.com/alexcrichton/cd4736e3faebbc7e45609a8b82a77d2a/raw/e92638fb6f6706c7ada3567e232358cba00993b8/slow-lld-invocation.tar.xz</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>