OpenBSD Journal

pkg_add(1) speedup

Contributed by rueda on from the cache-me-if-you-can dept.

In -current, the performance of pkg_add(1) has been greatly enhanced by the enabling of caching by default:

CVSROOT:	/cvs
Module name:	src
Changes by:	espie@cvs.openbsd.org	2022/04/29 04:44:05

Modified files:
	usr.sbin/pkg_add/OpenBSD: PackageLocation.pm 
	usr.sbin/pkg_add/OpenBSD/PackageRepository: Cache.pm 
	                                            Installed.pm 

Log message:
finally, turn on caching by default

change the defines:
TEST_CACHING -> !NO_CACHING
TEST_CACHING_VERBOSE -> CACHING_VERBOSE
TEST_CACHING_RECHECK -> CACHING_RECHECK

okay with sthen@

(Comments are closed)


Comments
  1. By Nick H (Nick_H) on

    This is a great change! I regularly update my X1 to the latest snapshots and then update the packages - what used to take around 5 minutes with pkg_add now takes about 40 seconds. Thank you!

    Comments
    1. By Amit Kulkarni (amitkulz) on

      Wowwwww, tremendous speedup. And usually when it has no updates, it completes in like 5 seconds!

      Thanks

Latest Articles

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]