Date: Sat, 12 Feb 2005 23:00:32 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive archive_read_support_format_zip.c Message-ID: <200502122300.j1CN0WrK032990@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2005-02-12 23:00:31 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_zip.c Log: Performance optimization, code clarification, and bug workaround. When reading the bodies of Zip archive entries, request a minimum of 1 byte, rather than a minimum of the full entry size. This is faster (since it does not force the decompression layer to combine reads) and works around a bug in the "none" decompression handler (which I'm testing a separate fix for now). I've also renamed "bytes_read" to "bytes_avail" in several places to more accurately reflect that the value returned from (a->compression_read_ahead) is the number of bytes available, not necessarily the number of bytes requested. Revision Changes Path 1.4 +36 -28 src/lib/libarchive/archive_read_support_format_zip.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502122300.j1CN0WrK032990>