From owner-cvs-src@FreeBSD.ORG Sat Feb 12 23:00:36 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD4A516A4CE; Sat, 12 Feb 2005 23:00:36 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 966A143D1D; Sat, 12 Feb 2005 23:00:35 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1CN0W3f032991; Sat, 12 Feb 2005 23:00:32 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1CN0WrK032990; Sat, 12 Feb 2005 23:00:32 GMT (envelope-from kientzle) Message-Id: <200502122300.j1CN0WrK032990@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 12 Feb 2005 23:00:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive_read_support_format_zip.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 23:00:36 -0000 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