]> git.ipfire.org Git - thirdparty/bind9.git/commit
Stream DNS: avoid memory copying/buffer resizing when reading data
authorArtem Boldariev <artem@boldariev.com>
Mon, 26 Dec 2022 15:42:49 +0000 (17:42 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 3 Apr 2023 13:31:46 +0000 (13:31 +0000)
commit2b3a3c21dc02b658ea7959aaeb28f7d990f244a8
treea002919b4c47b32bdec6e2af38a8c54a7999fddd
parent33a058811366ead9d3531693e1d3929d7180aa97
Stream DNS: avoid memory copying/buffer resizing when reading data

This commit optimises isc_dnsstream_assembler_t in such a way that
memory copying and reallocation are avoided when receiving one or more
complete DNS messages at once. We try to handle the data from the
messages directly, without storing them in an intermediate memory
buffer.
lib/isc/include/isc/dnsstream.h