]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-rr.c
resolved: try to reduce number or DnsResourceKeys we keep around by merging them
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Jan 2016 20:38:27 +0000 (21:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 17 Jan 2016 19:47:46 +0000 (20:47 +0100)
commitf57e3cd5fa709ec0f52531eccba909ac0851927c
treeb68b42dbf9af7dd7c82c75859c3ac06f17fdeda4
parent2e1bab34bdb1a5e849060afa8361b865ce39f87f
resolved: try to reduce number or DnsResourceKeys we keep around by merging them

Quite often we read the same RR key multiple times from the same message. Try to replace them by a single object when
we notice this. Do so again when we add things to the cache.

This should reduce memory consumption a tiny bit.
src/resolve/resolved-dns-cache.c
src/resolve/resolved-dns-packet.c
src/resolve/resolved-dns-rr.c
src/resolve/resolved-dns-rr.h