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

Chris Hanson cmh at bDistributed.com
Thu Nov 16 17:04:38 PST 2000



At 1:10 AM -0800 11/16/00, Monty wrote:
>It will be death on MacOS (which will be calling New and bringing the
>machine to a standstill while it does).

Why do you say that?  Generally malloc is implemented in terms of 
pools that are allocated with NewPtr, rather than by calling straight 
through to it.

I haven't noticed this to be a serious problem in my ten years of 
Macintosh development (including a couple years of doing 
publishing-industry work and dealing with multi-hundred megabyte 
image files).  Yes, sometimes you need to tune this behavior, but 
Metrowerks at least has a number of parameters which you can modify 
to do so.

>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.

But using alloca in a cross-platform library (which should be as 
ANSI-compliant as possible) is also wrong.

   -- Chris


-- 
Christopher M. Hanson, President & CEO, bDistributed.com, Inc.
Developers of database-backed web sites and Mac software
Contact me about porting your application to Carbon or WebObjects!
cmh at bDistributed.com, +1-847-372-3955, cmh at mac.com (Personal)

--- >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