[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New versions of openbsd_{basename,dirname}.c

On Tue, Jan 17, 2012 at 11:26:26AM +0100, Samuel Thibault wrote:
> > I'd suggest using a base size of e.g. 64 or another power of two close
> > to the expected common size, instead of "twice as much".
> Why?

It should reduce fragmentation in most memory allocators and it's also
quicker to multiply.

Richard Braun

Reply to: