caps: Optimize gst_caps_is_subset()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 May 2011 10:45:59 +0000 (12:45 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 May 2011 10:45:59 +0000 (12:45 +0200)
commit32248a9b852bcb568a5b642299ecc8e5bf48ea13
tree9ddd83cf2d19789c40d2d32552673c15cf8f3316
parent934faf163caf10ed3d54d81fd7b793069913dffd
caps: Optimize gst_caps_is_subset()

..and as a result gst_caps_is_equal() and others.

This now only checks if for every subset structure there is
a superset structure in the superset caps. Previously we were
subtracting one from another, creating completely new caps
and then even simplified them.

The new implemention now is about 1.27 times faster.
gst/gstcaps.c