On Fri, Oct 14, 2016 at 8:01 PM, Bernhard Reutner-Fischer
<rep.dot....@gmail.com> wrote:
> On 13 October 2016 22:08:21 CEST, Jerry DeLisle <jvdeli...@charter.net> wrote:
>>On 10/13/2016 08:16 AM, Janne Blomqvist wrote:
>
>>>
>>> Regtested on x86_64-pc-linux-gnu. Ok for trunk?
>>>
>>
>>Yes, OK, clever! Thanks!
>
> Is 32 something a typical program uses?

Probably not. Then again, wasting a puny 32 bytes vs. the time it
takes to do one or two extra realloc+copy operations when opening that
many files?

> I'd have started at 8 and had not doubled but += 16 fwiw.

I can certainly start at a smaller value like 8 or 16, but I'd like to
keep the multiplicative increase in order to get O(log(N))
reallocs+copys rather than O(N) when increasing the size.

-- 
Janne Blomqvist

Reply via email to