GNOME Bugzilla – Bug 796483
queue2: use GstQueueArray and static allocation instead of GQueue
Last modified: 2018-06-04 10:12:28 UTC
I have noticed that queue2 is still using GQueues and the slice allocator in the case where it is being used as a queue. I have made a simple patch updating it to use gstqueue array and static memory instead.
Created attachment 372519 [details] [review] The patch
Thanks! Pushed with two minor style changes (new lines after variable declaration) and an equally arbitrary but lower default size of 32 instead of MAX_BUFFERS*3 commit ac7f8b633720d1ec4c4c7fdfddf04a90d8db8841 (HEAD -> master) Author: Dimitrios Katsaros <patcherwork@gmail.com> Date: Sat Jun 2 14:02:19 2018 +0200 queue2: use GstQueueArray When using queue2 as a queue it was using GQueue with individually allocated queue items, so two allocs for each item. With GstQueueArray we can avoid those. https://bugzilla.gnome.org/show_bug.cgi?id=796483