]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: use a temporary Set to speed up dns question parsing
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Feb 2019 06:01:50 +0000 (07:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Mar 2019 14:53:37 +0000 (15:53 +0100)
commit2d34cf0c16dd8fa71fb593e65ce4734cb61d9170
tree0f33ee57a7dbf10b49f3ba12371210842882298e
parent46d4d67d7914c31e5d9b97e54fa5477824bf5518
resolved: use a temporary Set to speed up dns question parsing

This doesn't necessarily make things faster, because we still spend more time
in dns_answer_add(), but it improves the compuational complexity of this part.
If we even make dns_resource_key_equal_faster, this will become worthwhile.
src/resolve/resolved-dns-packet.c
src/resolve/resolved-dns-question.c
src/resolve/resolved-dns-question.h