Re: memory allocations.

Havoc Pennington <hp redhat com> writes:

> iain <iain ximian com> writes: 
> > I'm not sure where this could go, possibly in g_thread_init add a call
> > to g_mem_set_vtable which switches to the faster malloc?
> > 
> > Comments?
> That would make malloc unthreadsafe as soon as you turned on
> threading. ;-) Maybe not a great idea...

Presumably it should be the other way around. As default make
g_malloc() fast and thread-unsafe. On g_thread_init() switch to the
slow, but thread-safe one. I doubt it'll matter much, though.

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