[tremor] solution to alloca() on platfomrs that dont support it

Nicolas Pitre nico at cam.org
Wed Oct 16 11:27:07 PDT 2002



On Wed, 16 Oct 2002 bobbydigi at btinternet.com wrote:

> > Just do the malloc() thing, for broken platforms.  If you want speed, you
> > don't want libvorbis
> > anyway.
> 
> This is very confusing, is tremor not supposed to be a fast integer based
> decoder that's suitable for hardware implementations?
> 
> If I "dont want libvorbis" for speed, what should I use to decode ogg
> files? or are you suggesting that decoding ogg is not fast so I should
> implement some other format?

Vorbis decoding is made fast by, amongst other things, using allocat().  
Implementing allocat() is merely about decreasing the stack pointer with the 
desired size.  Implementing some other format is also possible if you really 
want to.  Which one is simpler?

Note that any sane compiler will use a built-in implementation of allocat() 
since it's so simple to perform.  Requiring library support for that is 
just silly.

<p>Nicolas

--- >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 'tremor-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 Tremor mailing list