* On 2026-02-09 at 08:02 GMT, Thomas Klausner wrote:
On Mon, Feb 09, 2026 at 07:47:18AM +0100, Jonathan Perkin wrote:You may want to take a look at using pkgtools/varcache to pre-populate expensive variables, as well as adding any other cached variables to mk.conf as this will have a drastic effect on all pkgsrc operations. I'm happy to write this up if you need more details.I've already documented this in the guide, but feel free to improve it. https://www.netbsd.org/docs/pkgsrc/bulk.html#bulk.scan
Ok, cool, that looks good. Though perhaps worth pointing out that doing this improves the performance of _everything_, not just the scan phase of a bulk build. That just happens to be where it's probably the most noticeable.
I'd also perhaps change the setting of NATIVE_* to use show-vars rather than duplicating the logic, in case it ever changes or is different for other operating systems.
-- Jonathan Perkin pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com