<div dir="ltr">Currently we have three allocators for each input file. What if we should use three global allocators?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 7:00 PM, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>It changes where things are allocated from. Right now every file has 3 allocators for the sections. With the patch all of them use a common allocator, so stuff from the same file is closer together. We also don't fragment memory as much.<div><div class="h5"><br>
<br>
<br><br><div class="gmail_quote">On October 26, 2016 8:02:22 PM EDT, Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<pre class="m_3039063140564456049k9mail">ruiu added a comment.<br><br>I don't think I fully understand why this can make things faster. This patch replaces<br><br>  llvm::<wbr>SpecificBumpPtrAllocator<[<wbr>derived class of InputSection]><br><br>with<br><br>  std::unique_ptr<InputSection>,<br><br>so the number of allocations and the number of deallocation (which should be zero if _exit is called) don't change, IIUC.<br><br><br><a href="https://reviews.llvm.org/D26006" target="_blank">https://reviews.llvm.org/<wbr>D26006</a><br><br><br><br></pre></blockquote></div><br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</font></span></div></blockquote></div><br></div>