commit | 46e6498b2afccd093d03697313e0d0c2f6e4d38d | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Thu Sep 29 19:50:55 2016 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Thu Sep 29 19:50:55 2016 +0200 |
tree | 7527d9c60c2e58da81242bdaa185ff894f26a496 | |
parent | 657086a3dc573649165a5271473fa1bcf58dc9ed [diff] |
hush: speed optimizations Make o_addchr() faster: do not call o_grow_by() each time. Create i_getch_and_eat_bkslash_nl(), use it instead of peek+getch pair. function old new delta o_addchr 42 54 +12 parse_dollar 761 771 +10 o_grow_by 48 37 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 24/-11) Total: 11 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>