[Asterisk-Dev] timeval stuff

Luigi Rizzo rizzo at icir.org
Fri Jun 10 03:21:33 MST 2005


On Thu, Jun 09, 2005 at 12:11:21PM -0500, Kevin P. Fleming wrote:
> 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.

posted, it is

http://bugs.digium.com/view.php?id=4504

please have a look

cheers
luigi



More information about the asterisk-dev mailing list