[openib-general] Re: SDP_CONN_LOCK
Grant Grundler
iod00d at hp.com
Thu Feb 17 16:34:51 PST 2005
On Thu, Feb 17, 2005 at 04:24:13PM -0800, Libor Michalek wrote:
> OK. I had used macros since in the fast path the functions wouldn't
> get called, but since it sounds like it makes things less readable I
> should be able to quickly try out replacing the macros with functions,
> and see what if any effect it has on performance.
Well, see how big the function is and how often it gets called.
One can define it as a static inline function if it doesn't
bloat the binary too much. Calls to "leaf" functions can
be pretty light weight.
FWIW, I think of static inline functions as "macros with typechecking".
Ie they can be defined in .h files instead of .c files.
grant
More information about the general
mailing list