On Tue, Mar 07, 2006 at 10:47:26PM +0000, Dave Mitchell wrote: > On Tue, Mar 07, 2006 at 11:45:01AM -0800, Nicholas Clark wrote: > > +=head2 Allocate OPs from arenas > > Erm, isn't the code already there, if PL_OP_SLAB_ALLOC is defined?
Er. I thought. I'd not looked at that. And then, no, that's not what I was thinking about. It seems to allocate all kinds of ops from a big slab of memory, and has fairly complex routines to knock it down into chunks of the correct size. I was thinking of how the SV body arena code works, which has 1 slap per type, and maintains a free list for each type, which makes freeing and reallocation much simpler, and allocation a bit simpler than the slab code. Nicholas Clark
