[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: PATCH: unzip seek fix
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2009-07-25 0:03:22
Message-ID: 200907250203.22833.vda.linux () googlemail ! com
[Download RAW message or body]

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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic