summaryrefslogtreecommitdiffstats
path: root/contrib/paclist
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-06-17 03:04:19 +0200
committerDan McGee <dan@archlinux.org>2009-06-24 04:51:42 +0200
commit8bbaf045b9ce7933778aa3c7e84ad4dc7c377238 (patch)
tree38b696a6e069fab792d0e355d0c24b3586c21e48 /contrib/paclist
parentf250b034b407d45bb08c7b713b01d25e0bb2b6ee (diff)
downloadpacman-8bbaf045b9ce7933778aa3c7e84ad4dc7c377238.tar.gz
pacman-8bbaf045b9ce7933778aa3c7e84ad4dc7c377238.tar.xz
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>
Diffstat (limited to 'contrib/paclist')
0 files changed, 0 insertions, 0 deletions