[Top][All Lists]

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

Re: slab allocator

From: Marcus Brinkmann
Subject: Re: slab allocator
Date: Thu, 18 Sep 2003 13:35:47 +0200
User-agent: Mutt/1.5.4i

On Thu, Sep 18, 2003 at 01:04:18PM +0200, Johan Rydberg wrote:
> Actually, there is no need for doing that.  But slab sapces are small objects
> with a static size, for which the slab allocator is used.  But you're right,
> malloc could be used instead.  That would eliminate the need for a init 
> function.

Right.  Well, slab spaces certainly are small objects with a static size,
but if only two or three are going to be created at startup, and then no
more, you can not take advantage of a slab allocator scheme (which is
effective when you allocate a lot of objects and release frequently).

I am open minded here.  We can leave it in as it is for now, and later
simplify it if we find a reason to think that it is a waste.


`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    address@hidden
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]