[gst-cvs] gstreamer: gstvalue: performance improvements

Wim Taymans wtay at kemper.freedesktop.org
Sun Jun 7 06:38:21 PDT 2009

Module: gstreamer
Branch: master
Commit: 65f9b381387a52dc1d4cf665bcf10ced4294e52f
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=65f9b381387a52dc1d4cf665bcf10ced4294e52f

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Sun Jun  7 15:35:12 2009 +0200

gstvalue: performance improvements

Add a GType->GstValueTable hashtable mapping.
Avoid _get_type() multiple times when we can.
Use GSlice for fraction range dynamic memory
Add G_LIKELY when we can
Improve lookup of the value table using the hashtable


 gst/gstvalue.c |  253 ++++++++++++++++++++++++++++++--------------------------
 1 files changed, 134 insertions(+), 119 deletions(-)

Diff:   http://cgit.freedesktop.org/gstreamer/gstreamer/diff/?id=65f9b381387a52dc1d4cf665bcf10ced4294e52f

More information about the Gstreamer-commits mailing list