gst/gststructure.c: No need to memset, we can clear the value ourselves.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 5 Nov 2008 16:57:35 +0000 (16:57 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 5 Nov 2008 16:57:35 +0000 (16:57 +0000)
commit209c57085c297db541905ab8891844a8c25e0c19
tree6f9685f9326b8f6cb5abc61038a77a072b5b5afc
parent773c1e4c1d69b08b4cb2d4dbee9b6c23265642c3
gst/gststructure.c: No need to memset, we can clear the value ourselves.

Original commit message from CVS:
* gst/gststructure.c: (gst_structure_id_empty_new_with_size):
No need to memset, we can clear the value ourselves.
* gst/gstvalue.c: (gst_type_is_fixed),
(gst_value_get_compare_func):
Some optimisations from a few callgrind sessions:
When checking if a type is fixed, check for trivial fundamental types
first before checking types for which we need to get the type followed
by the heavy duty type checks, this reduces the amount of
g_type_fundamental() calls a lot.
When getting the compare function, first check for our registered types.
If that fails, do the heavy duty g_type_is_a() checks, reduces the
amount of g_type_is_a() considerably.
ChangeLog
gst/gststructure.c
gst/gstvalue.c