[Asterisk-Dev] timeval stuff

Kevin P. Fleming kpfleming at digium.com
Thu Jun 9 10:11:21 MST 2005

Luigi Rizzo wrote:

> In terms of performance, i doubt you'd see a measurable difference - even
> assuming we could care, if
> you inline the simplest functions such as the constructors, I bet
> gcc optimzes away the extra assignment, and for other cases, you copy
> an extra 4 bytes once but then save a pointer dereference on each
> access (again the compiler will likely do the copy at the first access
> to save the dereference).

OK, let's get the patch posted then, this seems like a  good 
optimization and will help people write more reliable code as well.

More information about the asterisk-dev mailing list