Re: g_slice_
- From: Dave Benson <daveb idealab com>
- To: Behdad Esfahbod <behdad cs toronto edu>
- Cc: gtk-devel-list gnome org, Morten Welinder <mortenw gnome org>
- Subject: Re: g_slice_
- Date: Sat, 3 Dec 2005 19:39:44 -0800
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]