[Asterisk-Dev] Moving towards macros..

Matthew Boehm mboehm at cytelcom.com
Sun Dec 26 09:28:41 MST 2004


It seems that most of the code is moving towards macro calls. I just read
this in the astobj.h file:

/*
A set of macros implementing the asterisk object and container.  Macros
are used for maximum performance, to support multiple inheritance, and
to be easily integrated into existing structures without additional
malloc calls, etc.
*/

Perhaps someone could explain how/why macros gain performance over regular
function calls, the additional malloc calls, and the inheritance?

Thanks,
Matthew




More information about the asterisk-dev mailing list