Re: landing g_slice_*() in glib



On Fri, 2005-12-02 at 02:55 +0100, Tim Janik wrote:
> g_malloc/g_free:
>    Starting 1 threads allocating random blocks <= 1024 bytes with seed=123456789 using slab allocator + magazine cache
>    real    0m16.784s
> internal slab allocator:
>    Starting 1 threads allocating random blocks <= 1024 bytes with seed=123456789 using slab allocator
>    real    0m26.040s
> g_slice_*() (slab allocator + magazine cache):
>    Starting 1 threads allocating random blocks <= 1024 bytes with seed=123456789 using system malloc
>    real    1m40.123s
> 

This part obviously has the headers in the wrong order. g_malloc is the
one that takes 1m40s.

Also, are you making GType use g_slice for allocation of objects instead
of memchunks (if n_preallocs is set)?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a genetically engineered albino barbarian from a doomed world. She's a 
sharp-shooting antique-collecting mercenary who hides her beauty behind a pair 
of thick-framed spectacles. They fight crime! 




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