cvs commit: src/lib/libarchive archive_read_support_format_zip.c

Tim Kientzle kientzle at FreeBSD.org
Sat Feb 12 23:00:36 GMT 2005


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


More information about the cvs-src mailing list