From: Ben Greear <[EMAIL PROTECTED]>
Date: Tue, 24 Oct 2006 09:34:38 -0700

> It could be a compile-time option, and even if compiled in, it should 
> only be an if  branch on
> a pointer.  Is there any noticeable performance hit for an if check if 
> you wrap it with unlikely?

It's "just an if test", yes, but it is such a test dependant
upon a memory access, and that pointer has to live somewhere
and that takes up space and conflicts with other members in
the cpu cache line.

Hooks of this nature are never free or cheap.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to