[PATCH] Optimize config_read()

Timo Teräs timo.teras at iki.fi
Fri Aug 8 13:13:26 UTC 2008


Vladimir Dronnikov wrote:
> A question: why not simply strchrnul(line, delims[0]) = '\0' but bothering
> with comments in every token?

It's faster. strchrnul has to first seek to end of line.

> And meanwhile 'parse' testsuite, please.

Ah, shows one bug, PARSE_TRIM does not trim delimiters from end of the
last token. Will fix.

- Timo



More information about the busybox mailing list