pacman/scripts
Dan McGee 8bbaf045b9 repo-add: use bsdtar optimization for better performance
When unzipping packages and the database archives, we don't need to look
through the entire archive to do what we need to do. For packages, .PKGINFO
should only be found once and should be the first file in the package. For
the database check, we only really need to look for one desc file.

The bsdtar -q option is very similar to the GNU tar --occurrence=1 option.

Example of speedup:

$ time repo-add junkdb.db.tar.gz *.pkg.tar.gz >/dev/null
real	0m16.159s
user	0m14.836s
sys	0m2.277s

$ time ./scripts/repo-add junkdb.db.tar.gz *.pkg.tar.gz >/dev/null
real	0m4.949s
user	0m3.730s
sys	0m2.093s

Signed-off-by: Dan McGee <dan@archlinux.org>
2009-06-23 21:51:42 -05:00
..
.gitignore Add pkgdelta script to create deltas. 2009-03-15 18:10:15 +01:00
Makefile.am makepkg: make in-place sed portable 2009-04-26 09:22:23 -05:00
makepkg.sh.in makepkg: fix variable backup/restore for splitpkg 2009-06-13 09:51:18 -05:00
pacman-optimize.sh.in Give pacman-optimize a refresher 2008-10-28 22:18:22 -05:00
pkgdelta.sh.in Add pkgdelta script to create deltas. 2009-03-15 18:10:15 +01:00
rankmirrors.py.in Remove hardcoded DBEXT value from script 2008-01-06 09:44:28 -06:00
repo-add.sh.in repo-add: use bsdtar optimization for better performance 2009-06-23 21:51:42 -05:00