tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Doubling performance of pkgsrc/mk



* On 2022-10-20 at 18:07 BST, Adam wrote:

I wonder, is "${TEST} -d ${.TARGET:H} || ${MKDIR} ${.TARGET:H}" really faster than just "${MKDIR} ${.TARGET:H}"?
If it's only ever called once then no, but if there's any chance it 
might be called more than once then yes it makes a difference.
Currently every package build is running "mkdir ${WRKDIR}/.pkginstall" 
at least 21 times, for example.
Might not take that long in isolation, but this work is really about 
making lots of small changes add up to a huge improvement.
--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index