Re: gobject n_preallocs



tom <tom dbservice com> writes:

> i  made a improved test... (file below)
> 
> with n_prealloc = 1000:
> created:  ~200000
> freed: ~1500
> 
> and n_prealloc = 0:
> created: ~150000
> freed: ~1500
> 
> if you look at this you see that setting n_prealloc even decreases
> performance...

Nothing very unexpected about this. n_preallocs makes GObject
use GMemChunk, and normal malloc is known to be faster than
GMemChunk except on systems with highly broken malloc() 
implementions.

I'd ignore this feature of GObject.

Regards,
                                        Owen



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