Re: g_slice_



On Sat, Dec 03, 2005 at 10:35:38PM -0500, Behdad Esfahbod wrote:
> On Sat, 3 Dec 2005, Morten Welinder wrote:
> 
> > I might be dense, but what exactly does g_slice_ buy us over
> > plain, old malloc?
> >
> > * Don't say speed.  That's a bogus argument because you cannot
> >   possibly have tested all mallocs.
> 
> It's tested with the glibc implementation, and that buys us speed
> over the malloc at hand.

i have two sort-of related questions:
  - doesn't this belong in glibc?
  - why isn't it implemented as g_mem_set_table(g_slice_allocator)?

- dave



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