]> git.ipfire.org Git - thirdparty/bind9.git/commit
refactor dns_rdataslab_subtract() for efficiency
authorEvan Hunt <each@isc.org>
Mon, 10 Feb 2025 04:43:39 +0000 (20:43 -0800)
committerEvan Hunt <each@isc.org>
Wed, 19 Feb 2025 23:00:15 +0000 (15:00 -0800)
commitc2e19771ac925ca72c03fdc501591f1abd855c67
treefa39b7380743d408e2fb413057d4ed10f9d4bd83
parent1d5fe3613637e0f9c367f2a268de6a5918684462
refactor dns_rdataslab_subtract() for efficiency

reduce the number of rdata comparisons needed by walking
through the original slab once to determine whether the rdata
in it is duplicated in the slab to be subtracted, and then
write out the rdatas that aren't. previously, this was
done twice: once when determining the size of the target buffer
and then again when copying data into it.
lib/dns/rdataslab.c