On Tue, 26 Sep 2006, Kaustubh Atrawalkar wrote:
Hi
Is there any object caching mechanism in glib? The paper given in the
gslice.c header part says the there is object caching mechanism. But i
wonder hows exactly it is done? While calling g_slice_alloc function
there is just a request of memory size. It does not mention anything
about the object identification. Also is there any prefetching done on
the basis of object's life time prediction ?
GSlice/GLib does not cache _initialized_ objects.
it does caching of memory slices of the size of commonly allocated
objects though.
Kaustubh Atrawalkar
System Software Engineer
---
ciaoTJ