Re: gobject n_preallocs
- From: Owen Taylor <otaylor redhat com>
- To: tom <tom dbservice com>
- Cc: gtk-devel-list gnome org
- Subject: Re: gobject n_preallocs
- Date: Thu, 16 Jan 2003 17:17:19 -0500 (EST)
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]