NetBSD/external/bsd/atf
kre c2105d446d Replace a pipe into tr to normalise a var name (convert '.' or '-'
into '_' to meet sh variable name rules) into a shell string processing
loop.

On my test system, this reduces the total elapsed time for the bin/sh ATF
tests from about 109 secs to about 102 (user cpu from 24.5 to 21, sys cpu
from 34 to 30) and the usr.bin/make tests elapsed time from 42.5 to 40
secs (user from a bit over 15 to a bit over 13, and sys from 16+ to 13+).
(Recorded on an AMD64 domU).

These probably exaggerate the effect, as there are a bunch of quite small
tests, which means the ATF overhead (which this change affects) is a greater
proportion of the total test time than for some other tests where most of
the time is spent actually testing.

But I am fairly confident that there will be at least some improvement.

This could be further improved by removing the cmdsub invocation method,
and instead passing the name of a variable containing the string to
normalise (with the result returned in that same var) - but that would
mean altering all the callers as well.   Some other time maybe.
2020-09-10 22:51:10 +00:00
..
dist Replace a pipe into tr to normalise a var name (convert '.' or '-' 2020-09-10 22:51:10 +00:00
etc
lib external/bsd/atf: Suppress -Werror=stringop-truncation error 2020-06-07 23:09:34 +00:00
libexec
share
tests fix build of atf .cpp files 2020-06-21 13:59:56 +00:00
usr.bin
Makefile
Makefile.inc remove -std=gnu++98 2020-03-09 20:34:52 +00:00
bconfig.h
prepare-import.sh