udpsrc: optimize GstUdpSrc object for cache performance
authorPetr Kulhavy <brain@jikos.cz>
Tue, 15 Nov 2016 08:39:31 +0000 (09:39 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 21 Mar 2018 21:47:26 +0000 (17:47 -0400)
commit589019d8f5072d4470ea2ed76cfffa75f45e9426
tree788ebc22542bc693ac9b04c4e9754c5df97a58c0
parent850e678813f11b439994d434f2800bfbbb140864
udpsrc: optimize GstUdpSrc object for cache performance

Optimize GstUdpSrc for cache performance.

Move the hot properties, which are used by the read function, to the top:
@used_socket, @addr, @cancellable, @skip_first_bytes, @timeout,
@retrieve_sender_address.

Remove the unused property @ttl.

Where needed reorder so that holes are avoided (the 64-bit @timeout)

https://bugzilla.gnome.org/show_bug.cgi?id=772841
gst/udp/gstudpsrc.h