<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-07-10 14:53 GMT+09:00 Rob Landley <span dir="ltr"><<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 07/09/2015 05:41 AM, Yeongdeok Suh wrote:<br>
</span><span class="">> I discovered slow decompression while testing gunzip.<br>
> I want to discuss about this improvement.<br>
><br>
> I gunzipped an 15MB *.tar.gz file on the ARM board, and it takes around<br>
> 17 sec.<br>
> It's too slow, so I want to improve this for ARM based environment.<br>
> (x86 was okay)<br>
<br>
</span>So I looked at it some more and the deflate performance is kinda<br>
pathetic, I did "time zcat linux-4.0.tar.gz > /dev/null" and toybox's<br>
zcat is about half the speed of the ubuntu zcat. (I was going for simple<br>
code and didn't particularly optimize it at all.)<br>
<br>
So I agree it could be faster and I'm all for speeding it up, but I need<br>
to figure out where the slowness _is_ first.<br></blockquote><div><br class="">Actually, I'm analyzing the gzip inflate mechanism yet.</div><div>As you said, the code is simple but I think it can be improved.</div><div>If I have any idea about this, I'll share via mailing list.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
> As I debugged the src,<br>
> below while loop takes too much time when decoded huffman symbol is over<br>
> 256.<br>
<br>
</span>Could you tell me how you "debugged the src"? (What profiling tool did<br>
you use?)<br></blockquote><div><br></div><div>I didn't use anything special tools. I'm using gdb,</div><div>and I just checked speed of some code blocks via clock() function.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
Rob<br>
</font></span></blockquote></div><br></div></div>