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

jpd at videolan.org jpd at videolan.org
Fri Sep 4 09:41:54 CEST 2009


On Thu, Sep 03, 2009 at 05:49:35PM +0300, R??mi Denis-Courmont wrote:
> 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
[...]
> > 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.

alloca() also cannot report it has just overrun the stack, making
it unsafe, and there's the detail it isn't standard but compiler
dependent.




More information about the vlc-devel mailing list