commit | 21e8dbfd9d11a461ed7f91b495fa39d8a9131b28 | [log] [tgz] |
---|---|---|
author | Alin Mr <almr.oss@outlook.com> | Wed Jul 28 11:40:01 2021 +0300 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sat Oct 09 02:15:52 2021 +0200 |
tree | f7e2a43aa315aed066f13e2e09f5b52cdb0b5985 | |
parent | 94eb1c4dc6556932e1a12a0ce7734512ac95985e [diff] |
ash.c: speedup ${s:} substring (no quotes) This trivial patch makes ${s:...} at least as fast as ${s#??..} in simple tests. It's probably faster for longer substrings, but then one wouldn't use ${s#"1024???s"} anyway - one would switch away from sh. function old new delta subevalvar 1457 1503 +46 Signed-off-by: Alin Mr <almr.oss@outlook.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>