Eric Blake <[EMAIL PROTECTED]> writes:

>> See http://tinyurl.com/yd5669 for details.
>
> This message on the cygwin list has a good point,

For first-fit memory allocators, perhaps; but these are ancient
technology and I wouldn't worry about x2nrealloc on their account.

That being said, if you can show a real performance improvement in
x2nrealloc by using a multiplier of with some value less than 2, then
I'd favor changing x2nrealloc accordingly.  (I'm assuming glibc here.)
x2nrealloc's spec specifically allows a multiplier less than 2.
However, you'd have to do the overflow checking right, and at the
other end you have to make sure that growing from size 1 gets you to
size 2.


Reply via email to