]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Performance optimization, code clarification, and bug workaround.
authorkientzle <kientzle@FreeBSD.org>
Sat, 12 Feb 2005 23:00:31 +0000 (23:00 +0000)
committerkientzle <kientzle@FreeBSD.org>
Sat, 12 Feb 2005 23:00:31 +0000 (23:00 +0000)
commit51b8ea9c30e4fd636efc24f54fa5c846d03c4641
treee55d7536a65a5e1887dba9cb44dabd4ff2cf13b8
parent31107ff9be526b7216a47437a397dbc4ab9cdbce
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.
lib/libarchive/archive_read_support_format_zip.c