[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:48:50AM +0100, Samuel Thibault wrote:
> > It should reduce fragmentation in most memory allocators
> 
> Why? Allocators often use header/footer around the allocated area, so a
> power of two does nothelp.
> 
> > and it's also quicker to multiply.
> 
> ?? "twice as much" is shifting left. Computing a close power of two is
> way longer to compute.

Err, right, sorry, I had something else and wrong in mind.

-- 
Richard Braun


Reply to: