GNOME Bugzilla – Bug 610256
Use G_VALUE_COLLECT_INIT if available
Last modified: 2010-03-12 09:02:35 UTC
Since glib 2.23.2, a faster variant of G_VALUE_COLLECT is available. The following patche makes use of it if it's present.
Created attachment 154024 [details] [review] 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.
Looks good IMHO, should probably be included in this release because it gives performance improvements for free ;)
commit bbe26d36ba42ec414a4d31a8864b23cf00906764 Author: Edward Hervey <bilboed@bilboed.com> Date: Wed Feb 17 13:02:43 2010 +0100 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