While on the subject of stralloc'ed structures: have you thought of
setting them to a fairly large value (e.g. 256 or 512 or the requeste
value, whichever is larger) when allocated? I know the stralloc_ready
can be used if you know the value will be large, but I have seen enough
byte-by-byte copy loops that it looked like a good idea to preallocate
(memory is cheap). I haven't torn into stralloc function in detail,
rather just what I saw while fixing my own code in the debugger, and a
quick look at the stralloc_ready et al code.

I seem to recall an CompSci algorithm to remember the last allocation,
then reallocate twice the space when the current area runs out of room.

-- 
Daemeon Reiydelle
Systems Engineer, Anthropomorphics Inc.
[EMAIL PROTECTED]

Reply via email to