PATCH: unzip seek fix
Denys Vlasenko
vda.linux at googlemail.com
Sat Jul 25 00:03:22 UTC 2009
On Friday 24 July 2009 22:18, Stefani Seibold wrote:
> Attached is a small fix for the unzip applet.
>
> The current version of the unzip applet use bb_copyfd_exact_size() to
> skip a zipped file and goto the next. This is very slow, especially on
> huge files or slow devices like usb 1.1 interfaces.
>
> This one liner fix use first lseek() to skip the file and if this fails
> in case of a pipe it use bb_copyfd_exact_size().
>
> This improve dramatically the speed of "unzip -l zipfile.zip" or "unzip
> zipfile.zip file".
Applied, thanks!
--
vda
More information about the busybox
mailing list