summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-invert
diff options
context:
space:
mode:
authorDenys Vlasenko2021-06-30 02:12:27 +0200
committerDenys Vlasenko2021-06-30 08:01:29 +0200
commit6cf6f1eaee1f6be2b936c2ff0e5852c00740edb4 (patch)
tree155241f4286faca0cd1c79633dfcb527d90b2fe0 /shell/hush_test/hush-invert
parentf99800758e24ff159808ca0b44064f548ed77a26 (diff)
downloadbusybox-6cf6f1eaee1f6be2b936c2ff0e5852c00740edb4.zip
busybox-6cf6f1eaee1f6be2b936c2ff0e5852c00740edb4.tar.gz
awk: remove custom pool allocator for temporary awk variables
It seems to be designed to reduce overhead of malloc's auxiliary data, by allocating at least 64 variables as a block. With "struct var" being about 20-32 bytes long (32/64 bits), malloc overhead for one temporary indeed is high, ~33% more memory used than needed. function old new delta evaluate 3137 3145 +8 modprobe_main 798 803 +5 exec_builtin 1414 1419 +5 awk_printf 476 481 +5 as_regex 132 137 +5 EMSG_INTERNAL_ERROR 15 - -15 nvfree 169 116 -53 nvalloc 145 - -145 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 5/1 up/down: 28/-213) Total: -185 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-invert')
0 files changed, 0 insertions, 0 deletions