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.
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



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