[vorbis-dev] BeOS on PPC compile, thread question.

Monty xiphmont at xiph.org
Thu Nov 16 01:10:03 PST 2000



> And replacing the alloca()'s with malloc()/free() pairs _could_ be
> useful. (1st for people without alloca() (who cares about-em anyway), and
> 2nd for people who are concerned about performance. I'll test if it makes
> a speed difference.)

It will be death on MacOS (which will be calling New and bringing the
machine to a standstill while it does).  The libs are designed to
quickly reach steady state and never need to malloc during the
mainline of execution.  I use alloca() specifically when I know the
exact size I want, it won't grow and it's small, because alloca() only
increments SP and doesn't cause memory fragmentation.

Replacing alloca() with malloc()/free() is certainly wrong.
*Possibly* replacing it with _vorbis_block_alloc may be correct as it
comes out of a libvorbis maintained pool.

Monty

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list