Threading libsmbclient - a proposal.
jra at samba.org
Fri Apr 3 17:02:18 GMT 2009
On Fri, Apr 03, 2009 at 12:51:05PM -0400, Derrell Lipman wrote:
> And we probably want to avoid even that, particularly in areas of code that are
> executed frequently. Function calls can be expensive. It's probably much more
> efficient to say "if (func_ptr != NULL) (*func_ptr)(params);" than to call a
> dummy function via func_ptr. That could all be hidden behind a macro, though,
> so the code isn't cluttered by it.
I'm a fan of the "premature optimization is the root of all evil" :-).
But yeah, the goal is that the lock/unlock calls are called internally
via macro's so we can add that if we need to.
More information about the samba-technical