$ sysctl -n kern.version
OpenBSD 6.1-current (GENERIC.MP) #44: Thu Aug 3 12:12:07 MDT 2017
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
---------
It looks like PkgInfo.pm revision 1.45 (discussed briefly in this[3]
thread)
made "pkg_info -Q" very slow:
PkgInfo.pm 1.44 [1]
$ for i in 1 2 3; do time pkg_info -Q xfce > /dev/null; done
0m01.78s real 0m00.58s user 0m00.13s system
0m01.51s real 0m00.46s user 0m00.11s system
0m01.41s real 0m00.42s user 0m00.06s system
PkgInfo.pm 1.45 [2]
$ for i in 1 2 3; do time pkg_info -Q xfce > /dev/null; done
0m45.10s real 0m03.08s user 0m03.30s system
0m44.07s real 0m02.57s user 0m03.11s system
0m41.49s real 0m03.15s user 0m03.72s system
I don't know enough perl to debug this fully, but I thought I would at
least
bring this issue to the developers attention, assuming it's not already
known :)
[1]:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm?rev=1.44&content-type=text/x-cvsweb-markup
[2]:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm?rev=1.45&content-type=text/x-cvsweb-markup
[3]: https://marc.info/?l=openbsd-tech&m=150134645310914&w=2