Re: gobject n_preallocs
- From: tom <tom dbservice com>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: gobject n_preallocs
- Date: Fri, 17 Jan 2003 18:31:29 +0100
Owen Taylor wrote:
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.
so for what is GMemChunk implemented in glib?
or why do you use GMemChunk in glib?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]