memcmp() is slow?
solt at dns.toxicfilms.tv
Sun Jan 23 10:57:09 CET 2005
Sunday, January 23, 2005, 4:52:10 AM, you wrote:
> This is a platform specific question, as memcmp() is implemented
> differently on each architecture. So tell us what you're test
> was run on. :)
Well, it was yoshfuji's patch that suggested the change explaining
that memcmp() is slow.
If joshfuji suggests a change like that, I think he is
pretty sure that for all archs' memcmp() of 4 integers is slower
than simply comparing them.
Anyway I was not aware of such a multiplicity of memcmp() and friends
implementations for different archs. Good to know :-)
More information about the netfilter-devel