From owner-cvs-all Sun Sep 8 23: 0:23 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E672C37B400; Sun, 8 Sep 2002 23:00:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9838543E42; Sun, 8 Sep 2002 23:00:17 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Received: from freefall.freebsd.org (sobomax@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8960HJU000955; Sun, 8 Sep 2002 23:00:17 -0700 (PDT) (envelope-from sobomax@freefall.freebsd.org) Received: (from sobomax@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8960HsO000954; Sun, 8 Sep 2002 23:00:17 -0700 (PDT) Message-Id: <200209090600.g8960HsO000954@freefall.freebsd.org> From: Maxim Sobolev Date: Sun, 8 Sep 2002 23:00:17 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/contrib/tar/src buffer.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG sobomax 2002/09/08 23:00:17 PDT Modified files: contrib/tar/src buffer.c Log: In the --fast-read mode send SIGTERM to decompressor once we have extracted all files we have been asked for. This vastly improves performance of pkg_add(1), because usually it only extract +CONTENTS file in --fast-read mode, checks it and only then extracts full content of tarball in normal mode. Without this patch, it have had to decompress the tarball twice, effectively doubling consumed CPU time. MFC after: 1 week Revision Changes Path 1.3 +10 -6 src/contrib/tar/src/buffer.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message