<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 10:52 PM, Davide Italiano <span dir="ltr"><<a href="mailto:davide@freebsd.org" target="_blank">davide@freebsd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Mar 16, 2015 at 1:54 AM, Davide Italiano <<a href="mailto:davide@freebsd.org">davide@freebsd.org</a>> wrote:<br>
><br>
> Shankar's parallel for per-se didn't introduce any performance benefit<br>
> (or regression).<br>
> If the change I propose is safe, I would like to see Shankar's change<br>
> in (and this on top of it).<br>
> I have other related changes coming next, but I would like to tackle<br>
> them one at a time.<br>
><br>
<br>
</span>Here's an update.<br>
<br>
After <a href="http://reviews.llvm.org/D8372" target="_blank">http://reviews.llvm.org/D8372</a> , I updated the profiling data.<br>
<br>
<a href="https://people.freebsd.org/~davide/llvm/lld-03162015.svg" target="_blank">https://people.freebsd.org/~davide/llvm/lld-03162015.svg</a><br>
It seems now 85% of CPU time is spent inside<br>
FileArchive::buildTableOfContents().<br>
In particular, 35% of the samples are spent inserting into<br>
unordered_map, so there's maybe something we can do differently there<br>
(e.g. , Rui's proposal of a concurrent map doesn't seem that bad).<br></blockquote><div><br>Anyone tried a DenseMap instead of an unordered_map? If you need pointer validity to the elements, a DenseMap with unique_ptrs rather than direct values could be an option. Chandler's usual argument here is that walking the map is cheap with high locality (as in a DenseMap) even if the nodes themselves involve indirection. Could be worth an experiment.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
Thanks,<br>
<br>
--<br>
Davide<br>
<br>
"There are no solved problems; there are only problems that are more<br>
or less solved" -- Henri Poincare<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>