Subject: CVS commit: src/usr.sbin/pkg_install
To: None <source-changes@NetBSD.org>
From: grant beattie <grant@netbsd.org>
List: source-changes
Date: 12/20/2003 03:31:56
Module Name:	src
Committed By:	grant
Date:		Sat Dec 20 03:31:56 UTC 2003

Modified Files:
	src/usr.sbin/pkg_install/add: perform.c
	src/usr.sbin/pkg_install/info: perform.c
	src/usr.sbin/pkg_install/lib: file.c ftpio.c lib.h

Log Message:
use the --use-compress-program argument to tar and do away with
the file descriptor handling mess in lib/file.c.

also use --fast-read where applicable.

result of pkg_info -B on 1.5ghz pentium4, linux:

			before		after
mozilla-1.4nb1.tgz	1.96sec		0.04sec
mozilla-1.4nb1.tbz	18.66sec	0.21sec

866mhz pentium3, NetBSD:

			before		after
mozilla-1.4nb1.tgz	2.22sec		0.07sec
mozilla-1.4nb1.tbz	16.29sec	0.34sec

-rw-r--r--    1 grant    users    13816195 Dec 20 13:59 mozilla-1.4nb1.tbz
-rw-r--r--    1 grant    users    15814227 Dec 20 13:58 mozilla-1.4nb1.tgz

XXX fetches over ftp/http still read the whole file.


To generate a diff of this commit:
cvs rdiff -r1.90 -r1.91 src/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.50 -r1.51 src/usr.sbin/pkg_install/info/perform.c
cvs rdiff -r1.69 -r1.70 src/usr.sbin/pkg_install/lib/file.c
cvs rdiff -r1.61 -r1.62 src/usr.sbin/pkg_install/lib/ftpio.c
cvs rdiff -r1.64 -r1.65 src/usr.sbin/pkg_install/lib/lib.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.