[gobject] Grow gvalue transform array exponentially

Bug 589176 - Grow gvalue transform array exponentially

Reduces about 180 realloc calls during g_type_init().
This commit is contained in:
Behdad Esfahbod 2009-06-05 23:28:17 -04:00
parent 88261680f5
commit e7488ca857

View File

@ -134,7 +134,7 @@ static GBSearchArray *transform_array = NULL;
static GBSearchConfig transform_bconfig = {
sizeof (TransformEntry),
transform_entries_cmp,
0,
G_BSEARCH_ARRAY_ALIGN_POWER2,
};