[tremor] Re: good version of alloca()
Segher Boessenkool
segher at koffie.nl
Tue Oct 15 15:49:42 PDT 2002
> Actually, the real reason to use alloca is that it's about three asm
> opcodes, can be inlined trivially, requires no system call, will not
> add to heap fragmentation, etc, etc. It is the fast way to get
> temporary storage. very fast.
Zero asm opcodes on a decent architecture, actually (with a good
optimizing compiler). And the most important reason it's fast is its
cache locality (as soon as one alloca() users releases an area, the next
user will pick up _that same_ area. Excellent.)
<p>Segher
--- >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