Re: [PATCH] net/openvswitch: replace memcmp() with specialized comparator

2013-04-26 Thread Eric Dumazet
On Fri, 2013-04-26 at 17:46 -0400, Peter Klausler wrote: > Tune flow table lookup in net/openvswitch, replacing a call to > the slow-but-safe memcmp() in lib/string.c with a key comparator > routine that presumes most comparisons will succeed. Besides > avoiding an early-exit test on each iteratio

[PATCH] net/openvswitch: replace memcmp() with specialized comparator

2013-04-26 Thread Peter Klausler
Tune flow table lookup in net/openvswitch, replacing a call to the slow-but-safe memcmp() in lib/string.c with a key comparator routine that presumes most comparisons will succeed. Besides avoiding an early-exit test on each iteration, it also compares keys 4 or 8 bytes at a time on architectures