diff options
| author | Ron Yorston <rmy@pobox.com> | 2020-08-01 11:31:22 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2020-08-01 11:31:22 +0100 |
| commit | 32862e44e0dd011f505e35ca30aad015e842cbdd (patch) | |
| tree | b4d276dfc872658f8ee38495cac07161114de53e /shell/hush_test/hush-misc/empty_for1.tests | |
| parent | cfa888eb571d92d4de02b406f0dad15e4fa26d19 (diff) | |
| download | busybox-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 'shell/hush_test/hush-misc/empty_for1.tests')
0 files changed, 0 insertions, 0 deletions
