NetBSD-Bugs archive

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

PR/57993 CVS commit: [netbsd-10] src/usr.sbin/certctl



The following reply was made to PR bin/57993; it has been noted by GNATS.

From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57993 CVS commit: [netbsd-10] src/usr.sbin/certctl
Date: Mon, 11 Mar 2024 17:12:53 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Mar 11 17:12:53 UTC 2024
 
 Modified Files:
 	src/usr.sbin/certctl [netbsd-10]: certctl.sh
 
 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #621):
 
 	usr.sbin/certctl/certctl.sh: revision 1.6
 
 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
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.4.2.3 -r1.4.2.4 src/usr.sbin/certctl/certctl.sh
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index