[vlc-devel] commit: aout_BufferAlloc() : remove stack allocation ( Rafaël Carré )

Rémi Denis-Courmont remi at remlab.net
Thu Sep 3 16:49:35 CEST 2009


Le jeudi 3 septembre 2009 16:07:04 git version control, vous avez écrit :
> vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Sep  3
> 15:03:07 2009 +0200| [f76500382dc059091e0d811ed55a22337d2fe04f] |
> committer: Rafaël Carré
>
> aout_BufferAlloc() : remove stack allocation
>
> alloca() was not used anyway on OSX and BSD, due to smaller stack sizes,
> and we can't assume a default stack size anyway
>
> I expect the performance loss to be minimal, but worth the code
> simplification anyway (i didn't benchmark)

And I don't. The heap is contended and slow. The stack is thread-local and has 
zero allocation overhead.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list