Glib Object Caching


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 ?

Kaustubh Atrawalkar
System Software Engineer

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