<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Apr 11, 2017 at 9:47 AM Rui Ueyama via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ruiu added a comment.<br class="gmail_msg">
<br class="gmail_msg">
I wonder why you want a streaming compression support to write compressed .debug sections. All you need is to call zlib's `compress2` only once for each section, no?<br class="gmail_msg"></blockquote><div><br>Potentially to avoid having to manifest the entire output section in a single buffer in memory first (eg: if you're compressing 3 chunks from input objects together into the final output section - you can avoid the intermediate buffer/copying/etc, by passing the chunk from each input object in to a streaming compression device). At least that's what I'd use this for in llvm-dwp.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D31943" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D31943</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div></div>