diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-17 14:33:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-17 14:33:19 +0200 |
commit | 0d2e0de42bab54c31ba37f1c6fd10dcdc7008ccf (patch) | |
tree | 9c84b82f6bb324a685ac8270aa44230121e7c7bb /shell/ash_test | |
parent | b762c784caa78877a9949224af425e52db237beb (diff) |
hush: faster/smaller code to check for presense of multiple chars in string
Go over the string only once.
function old new delta
encode_then_expand_string 126 105 -21
encode_then_expand_vararg 443 399 -44
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-65) Total: -65 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
0 files changed, 0 insertions, 0 deletions