On May 29, 2005, at 1:03 PM, Axel Wei� wrote:

Am Sonntag, 29. Mai 2005 17:12 schrieb James Berry:

What if you make this initial buffer a static buffer? And allocate
the exact size needed at the end?
That keeps the memory cost constant, at the expense of a guaranteed
extra string copy.


I understand. Shall we protect the static buffer against concurrent
threads, e.g. shall transcode be reentrant?

Hey Axel,

My choice of the work "static" was poor. I meant to allocate a fixed size buffer on the stack...in which case there's no need to protect anything, as each caller gets its own buffer.

James.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to