diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-08-27 16:12:30 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-08-27 16:12:30 -0400 |
commit | 7936af693477f5b8dfeef4e0d90e6fa4531cf395 (patch) | |
tree | cf6b1fb62bf617624dc259e8f4b539c0e430adf1 /glib/gvarianttype.c | |
parent | b53e95f3eb98fc7ba1527e225c32bb4ee2892746 (diff) | |
download | glib-7936af693477f5b8dfeef4e0d90e6fa4531cf395.tar.gz |
GVariantType: gut g_variant_type_check()
This function is causing an insane amount of wasted time on some
real-world profiles and it's pretty useless since we already have
GVariantType (as a type different from a string) for the purpose of
static type safety.
Disable it for now. We can possibly turn this back on again if we solve
bug #544026.
https://bugzilla.gnome.org/show_bug.cgi?id=679835
Diffstat (limited to 'glib/gvarianttype.c')
-rw-r--r-- | glib/gvarianttype.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/glib/gvarianttype.c b/glib/gvarianttype.c index aeea1c188..658af77ed 100644 --- a/glib/gvarianttype.c +++ b/glib/gvarianttype.c @@ -486,14 +486,11 @@ static gboolean g_variant_type_check (const GVariantType *type) { - const gchar *type_string; - if (type == NULL) return FALSE; - type_string = (const gchar *) type; -#ifndef G_DISABLE_CHECKS - return g_variant_type_string_scan (type_string, NULL, NULL); +#if 0 + return g_variant_type_string_scan ((const gchar *) type, NULL, NULL); #else return TRUE; #endif |