Re: Glib Object Caching

Ok. But was there any approaches taken before like the object's lifetime prediction or some kind of prefetching? If it is done how much it can be beneficial? The aim is to optimize glib's memory performance in both usage and time complexity.

Tim Janik wrote:
On Tue, 26 Sep 2006, Kaustubh Atrawalkar wrote:


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


Kaustubh Atrawalkar
System Software Engineer

Celunite Inc,
3rd Floor, Business Avenue
Koregaon Park
Pune, MS 411001
Work: 912026051367
Mobile: 919890305492
Email: kaustubh atrawalkar celunite com

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