optimize config_read() (by Timo Teras <timo.teras AT iki.fi>)
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 9 Aug 2008 17:16:40 +0000 (17:16 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 9 Aug 2008 17:16:40 +0000 (17:16 -0000)
commit69f4f9a6f40e2825c93fad4d3adf453c9b33d9bb
tree5e35a08d3b3db69b6dc212cbdf681d78bf4425ff
parent3fd15e197e21aa313ce56126ee814f0ebc884dee
optimize config_read() (by Timo Teras <timo.teras AT iki.fi>)

function                                             old     new   delta
bb_get_chunk_with_continuation                         -     176    +176
find_pair                                            169     187     +18
...
process_stdin                                        443     433     -10
config_read                                          549     456     -93
bb_get_chunk_from_file                               139       7    -132
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/7 up/down: 215/-254)          Total: -39 bytes
include/libbb.h
libbb/get_line_from_file.c
libbb/parse_config.c