There are also alternative implementations of deflate that are much faster on various processors, but produce zlib compatible compression (<a href="http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/ia-deflate-compression-paper.pdf">http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/ia-deflate-compression-paper.pdf</a>, et al). As chandler said, doubt it's worth going down this path.<div>If we have speed issues, zlib is not the way you want to go. <br></div><br><div class="gmail_quote">On Tue Sep 23 2014 at 9:05:52 AM Alex Rosenberg <<a href="mailto:alexr@leftfield.org">alexr@leftfield.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>On Sep 23, 2014, at 7:42 AM, Jim Grosbach <<a href="mailto:grosbach@apple.com" target="_blank">grosbach@apple.com</a>> wrote:</div><div><br></div><blockquote type="cite"><br><div><blockquote type="cite"><div>On Sep 23, 2014, at 1:29 AM, Chandler Carruth <<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>> wrote:</div><br><div><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 9:38 PM, Alex Rosenberg <span dir="ltr"><<a href="mailto:alexr@leftfield.org" target="_blank">alexr@leftfield.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is your answer the same if we're talking about an asm version of zlib that's faster than the compiled version? Because that's a thing.</blockquote></div><br>If zlib is our bottleneck... wow we have bigger issues.</div><div class="gmail_extra"><br></div><div class="gmail_extra">And as we work on a compiler, I kinda hope we can produce a reasonable blob of asm in most cases. If not, we should probably get on that.</div></div></div></blockquote><div><br></div><div>Dang it. Beaten to the punch. I was just going to ask for a bug report that we apparently generate suboptimal code for that. :)</div><div><br></div><div>Taking my trolling hat back off, I actually am interested in whether it’s reasonable for the compiler to do significantly better here (and on other similar kinds of code). Alex, can you elaborate a bit?</div></div></blockquote><br></div><div dir="auto"><div>Zlib has been written in asm a few times over, just check the distribution.</div><div><br></div><div>I haven't looked too closely at the code, but from my recollection of someone in my team writing a SPU version, it's pretty much a set of transforms that if a compiler could do them would be considered "heroic optimizations" and likely not the sort of thing we'd put in LLVM.</div></div><div dir="auto"><div><br></div><div>Alex</div></div>______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote></div>