uri: Build doubly-linked list by prepending items
authorPhilippe Normand <philn@igalia.com>
Thu, 10 Mar 2022 18:22:49 +0000 (18:22 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 16 Mar 2022 11:39:28 +0000 (11:39 +0000)
commit4277af3219cc68853a49537e39aa0c1caefc5356
tree3bfdb3b1e56f112fcf3f1f16da71dc2f43988132
parentb8ccf7f80283d06841a0b191be940f7ab78940c8
uri: Build doubly-linked list by prepending items

As outlined in the API documentation, g_list_append() iterates over the whole
list, which can quickly introduce performance issues when the list becomes very
big, such as for data URIs for instance.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1909>
subprojects/gstreamer/gst/gsturi.c