<div dir="ltr">I used MSVC 2013 for my test.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 8, 2015 at 10:38 AM, Jean-Daniel Dupas <span dir="ltr"><<a href="mailto:mailing@xenonium.com" target="_blank">mailing@xenonium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just out of curiosity, what STL lib are you using for your tests ?<br>
<br>
> Le 8 mars 2015 à 03:44, Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a>> a écrit :<br>
<div class="HOEnZb"><div class="h5">><br>
> Author: ruiu<br>
> Date: Sat Mar  7 20:44:51 2015<br>
> New Revision: 231584<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=231584&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=231584&view=rev</a><br>
> Log:<br>
> Resolver: Use LLVM StringMap and DenseMap.<br>
><br>
> All defined symbols from all archive files are inserted to _archiveMap,<br>
> so performance of hash table matters here (I'm not trying to convert<br>
> all std::maps with DenseMaps). This change seems to make the linker<br>
> 0.5% - 1% faster for my test case.<br>
><br>
> Modified:<br>
>    lld/trunk/include/lld/Core/Resolver.h<br>
><br>
> Modified: lld/trunk/include/lld/Core/Resolver.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Resolver.h?rev=231584&r1=231583&r2=231584&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Resolver.h?rev=231584&r1=231583&r2=231584&view=diff</a><br>
> ==============================================================================<br>
> --- lld/trunk/include/lld/Core/Resolver.h (original)<br>
> +++ lld/trunk/include/lld/Core/Resolver.h Sat Mar  7 20:44:51 2015<br>
> @@ -100,8 +100,8 @@ private:<br>
>   size_t _fileIndex;<br>
><br>
>   // Preloading<br>
> -  std::map<StringRef, ArchiveLibraryFile *> _archiveMap;<br>
> -  std::unordered_set<ArchiveLibraryFile *> _archiveSeen;<br>
> +  llvm::StringMap<ArchiveLibraryFile *> _archiveMap;<br>
> +  llvm::DenseSet<ArchiveLibraryFile *> _archiveSeen;<br>
><br>
>   // List of undefined symbols.<br>
>   std::vector<StringRef> _undefines;<br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br>
</div></div></blockquote></div><br></div>