bufferlist: pre-allocate buffer array in one go with the buffer list
authorTim-Philipp Müller <tim@centricular.com>
Thu, 26 Jun 2014 13:09:25 +0000 (14:09 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 24 Jul 2014 09:45:23 +0000 (10:45 +0100)
commitfbe2477fae40e546b31b8397d4ac79b5954c827b
tree0fbc66aceb3e070eca12a2914e185a226a2f2ad9
parent3fbc3d76dc6cf1be6ef7fd9dfa5252b6c892a793
bufferlist: pre-allocate buffer array in one go with the buffer list

We can now create and free a buffer list with one slice alloc/free
call in most cases, instead of one slice alloc/free for the list,
one slice alloc/free for the GArray, and one malloc/free for the
GArray array. In practice we know the max size of our buffer list
from the start, so can avoid reallocs.

https://bugzilla.gnome.org/show_bug.cgi?id=732284
gst/gstbufferlist.c