bc: speed up string printing, fix print ""
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Jan 2019 04:03:53 +0000 (05:03 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Jan 2019 04:03:53 +0000 (05:03 +0100)
commit266bec8ba76898c5602e54fb3460c4af42f38af0
treec25d57e7ed177c88fdb4cc254cee4d28e05801a3
parent2231468a2f28e99cb6b65dc40da044e37af16ed1
bc: speed up string printing, fix print ""

function                                             old     new   delta
static.esc                                             -       9      +9
zxc_program_print                                    681     683      +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 11/0)               Total: 11 bytes
   text    data     bss     dec     hex filename
 979144     485    7296  986925   f0f2d busybox_old
 979062     485    7296  986843   f0edb busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c
testsuite/bc.tests