30 Nov
2003
30 Nov
'03
8:17 p.m.
Peter Moulder wrote:
Disadvantage of the transformation:
- Involves a function call even in the NULL case (unless g_free is a macro or inline function that tests for NULL before passing to the "real" version).
My question here is: "So, what's the problem with that?"
What's the extra overhead of the function call? milliseconds? microseconds? How often does a function call with null happen? once a minute? 1,000 times a second?
Otherwise... that sounds like a premature optimization kind of concern. (BTW, I think it originated to keep older C memory libraries happy)