The resulting code is much prettier. The existing code does satisfy the O(1) requirement, but as a big fan of gperf, I like this a lot.
How do you use gperf for further parsing? Aaron On Wed, Nov 7, 2007, Tomash Brechko <[EMAIL PROTECTED]> said: > Using one lookup per command instead of a sequence of strcmp() is more > scalable. This patch doesn't change command syntax or semantics in > any way. The next step would be to use GPerf for the rest of the > parsing. [snip patch]
