<div dir="ltr"><span style="font-size:12.8px">That's as described in r248078. Because </span><span style="font-size:12.8px">r248078 missed this change, that didn't actually make things faster.</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 19, 2015 at 3:09 PM, Rafael Espíndola <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"><p dir="ltr">What is the speed difference? </p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Sep 19, 2015 5:34 PM, "Rui Ueyama via llvm-commits" <<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: ruiu<br>
Date: Sat Sep 19 16:33:26 2015<br>
New Revision: 248098<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=248098&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=248098&view=rev</a><br>
Log:<br>
COFF: Actually parallelize InputFile::parse().<br>
<br>
This is a follow-up patch to r248078.<br>
<br>
Modified:<br>
    lld/trunk/COFF/SymbolTable.cpp<br>
<br>
Modified: lld/trunk/COFF/SymbolTable.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.cpp?rev=248098&r1=248097&r2=248098&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.cpp?rev=248098&r1=248097&r2=248098&view=diff</a><br>
==============================================================================<br>
--- lld/trunk/COFF/SymbolTable.cpp (original)<br>
+++ lld/trunk/COFF/SymbolTable.cpp Sat Sep 19 16:33:26 2015<br>
@@ -56,8 +56,8 @@ void SymbolTable::readArchives() {<br>
   if (ArchiveQueue.empty())<br>
     return;<br>
<br>
-  std::for_each(ArchiveQueue.begin(), ArchiveQueue.end(),<br>
-                [](ArchiveFile *File) { File->parse(); });<br>
+  parallel_for_each(ArchiveQueue.begin(), ArchiveQueue.end(),<br>
+                    [](ArchiveFile *File) { File->parse(); });<br>
<br>
   // Add lazy symbols to the symbol table. Lazy symbols that conflict<br>
   // with existing undefined symbols are accumulated in LazySyms.<br>
@@ -83,8 +83,8 @@ void SymbolTable::readObjects() {<br>
   // Add defined and undefined symbols to the symbol table.<br>
   std::vector<StringRef> Directives;<br>
   for (size_t I = 0; I < ObjectQueue.size();) {<br>
-    std::for_each(ObjectQueue.begin() + I, ObjectQueue.end(),<br>
-                  [](InputFile *File) { File->parse(); });<br>
+    parallel_for_each(ObjectQueue.begin() + I, ObjectQueue.end(),<br>
+                      [](InputFile *File) { File->parse(); });<br>
     for (size_t E = ObjectQueue.size(); I != E; ++I) {<br>
       InputFile *File = ObjectQueue[I];<br>
       if (Config->Verbose)<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>
</div></div></blockquote></div><br></div>