On Feb 14, 11:45 am, Ernie Rael <[email protected]> wrote:
> On 2/13/2012 2:36 PM, Dominique Pellé wrote:> since realloc() can only be 
> faster than ...
>
> Perhaps "can not be slower than" is more accurate

Disregarding function call overheads, I agree.  I can imagine
scenarios with the heap being heavily fragmented, maybe in a very long
running vim instance, where realloc is forced to move and copy.  I
agree, Dominique, that replacing arithmetic growth with geometric is
complementary and a good idea.

Regards, John

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui