]> git.ipfire.org Git - thirdparty/bind9.git/commit
Skip buffer allocations if not logging
authorAlessio Podda <alessio@isc.org>
Thu, 30 Oct 2025 10:45:09 +0000 (11:45 +0100)
committerAlessio Podda <alessio@isc.org>
Wed, 5 Nov 2025 17:38:33 +0000 (18:38 +0100)
commitd4fd6b323dca9ceb7a5f5afb7c2af320ba402415
tree55dbddaf44da174e8f5de62ff95a185b74c1bc0d
parent9153e2a70d5d8b3cedc33c56052a8159e292ff7a
Skip buffer allocations if not logging

Currently, during IXFR we allocate a 2KB buffer for IXFR change logging
regardless of the log level. This commit introduces an early check
on the log level in dns_diff_print to avoid this.

Results in a speedup from 28% in the test case from issue #5442.

(cherry picked from commit a164492f3cfa4e6b247bc5274567dc46acb0cded)
lib/dns/diff.c