--- - branch: MAIN date: Sun Mar 3 15:53:55 UTC 2024 files: - new: '1.6' old: '1.5' path: src/usr.sbin/certctl/certctl.sh pathrev: src/usr.sbin/certctl/certctl.sh@1.6 type: modified id: 20240303T155355Z.0d66f3be51629cfba3246cb2a8e4d806df7a356b log: | certctl(8): Avoid basename(1). Saves some time running subprocesses. Since this is only used for non-directories (i.e., there's never trailing / on the inputs), it suffices to delete the longest prefix matching glob `*/' with shell parameter expansion -- much cheaper than spawning a subprocess. Shaves off about 1/3 of the time spent in `certctl list' on an aarch64 VM in qemu. PR bin/57993 module: src subject: 'CVS commit: src/usr.sbin/certctl' unixtime: '1709481235' user: riastradh