aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_ext2_test.sh
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-08-01 11:31:22 +0100
committerRon Yorston <rmy@pobox.com>2020-08-01 11:31:22 +0100
commit32862e44e0dd011f505e35ca30aad015e842cbdd (patch)
treeb4d276dfc872658f8ee38495cac07161114de53e /util-linux/mkfs_ext2_test.sh
parentcfa888eb571d92d4de02b406f0dad15e4fa26d19 (diff)
downloadbusybox-w32-awk_faster.tar.gz
busybox-w32-awk_faster.tar.bz2
busybox-w32-awk_faster.zip
awk: speed improvementsawk_faster
Improve performance in certain cases at the cost of an additional 144 bytes in the binary. - Reinstate (and fix) the original code to speed up assignment of a temporary string to a variable. - Replace use of xasprintf() for string concatentation with explicit string manipulation. This could be faster still if Windows had an optimised stpcpy(). The enhancement is not enabled by default. This test case: BEGIN{while(++i<30000) s=s i} is 18 times faster. The less extreme: BEGIN{while(++i<1000000) s="abc " i} is 30% faster. See GitHub issue #193.
Diffstat (limited to 'util-linux/mkfs_ext2_test.sh')
0 files changed, 0 insertions, 0 deletions