From: Edward Hervey Date: Thu, 5 Nov 2009 17:55:30 +0000 (+0100) Subject: gstregistrychunks: We're certain plugin_name is an intern string. X-Git-Tag: RELEASE-0.10.26~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f7519704d6060ae8e1d5d33058ebe9527036357;p=platform%2Fupstream%2Fgstreamer.git gstregistrychunks: We're certain plugin_name is an intern string. The only place this method is called from creates the plugin_name argument with g_intern_string(). Shaves off 1% from registry loading. --- diff --git a/gst/gstregistrychunks.c b/gst/gstregistrychunks.c index 12e0f5a..b706caa 100644 --- a/gst/gstregistrychunks.c +++ b/gst/gstregistrychunks.c @@ -632,8 +632,7 @@ gst_registry_chunks_load_feature (GstRegistry * registry, gchar ** in, feature->rank = pf->rank; - /* should already be the interned string, but better make sure */ - feature->plugin_name = g_intern_string (plugin_name); + feature->plugin_name = plugin_name; gst_registry_add_feature (registry, feature); GST_DEBUG ("Added feature %s", feature->name);