]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-rr.c
resolved: shortcut RR comparisons if pointers match
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Dec 2015 16:28:50 +0000 (17:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Dec 2015 10:28:01 +0000 (11:28 +0100)
commit4d247a6cd3f69acbc5a09e8ac7e4fbb50eaa3228
tree048375d3253375464dd0e204cb480e3a7f5d3372
parentc84e853934cf99a737ef7d3f4ee5d61a1a2a5696
resolved: shortcut RR comparisons if pointers match

When iterating through RR lists we frequently end up comparing RRs and
RR keys with themselves, hence att a minor optimization to check ptr
values first, before doing a deep comparison.
src/resolve/resolved-dns-rr.c