gst: Use G_VALUE_COLLECT_INIT if available
authorEdward Hervey <bilboed@bilboed.com>
Wed, 17 Feb 2010 12:02:43 +0000 (13:02 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 12 Mar 2010 09:01:47 +0000 (10:01 +0100)
commitbbe26d36ba42ec414a4d31a8864b23cf00906764
tree4feed1f6ce55039254b6dcc4e0f8a3e6a27e1062
parent253ebab319269c6dd4ff6986f24f3f8e59cac137
gst: Use G_VALUE_COLLECT_INIT if available

This brings total call speedups between 5% and 25%.
gst_caps_set_simple_valist: +5%
gst_structure_set_valist: + 10%
gst_structure_id_set_valist: +25%
gst_tag_list_add_valist: +5%

Measured using valgrind when run over the discovery of 200 media files.

Fixes #610256
gst/gstcaps.c
gst/gstchildproxy.c
gst/gststructure.c
gst/gsttaglist.c