[PATCH] Optimize config_read()

Timo Teräs timo.teras at iki.fi
Fri Aug 8 14:28:04 UTC 2008


Timo Teräs wrote:
> Vladimir Dronnikov wrote:
> And meanwhile 'parse' testsuite, please.
> 
> Ah, shows one bug, PARSE_TRIM does not trim delimiters from end of the
> last token. Will fix.

Ok, fixed. Also modified the code the be smaller as the fixes made it
bigger.

It's currently "only" about -75 bytes, but the speed is faster and
to some degree more readable (IMO).

Passes "parse" and "mdev" test suites.

Consider applying.

- Timo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-optimize-config-read-v3.diff
Type: text/x-diff
Size: 7225 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080808/85dab417/attachment.bin 


More information about the busybox mailing list