[PATCH 3/3] Use GPerf for command names.

Aaron Stone aaron at serendipity.cx
Wed Nov 7 18:56:21 UTC 2007


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 <tomash.brechko at gmail.com> 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]


More information about the memcached mailing list