]> git.ipfire.org Git - thirdparty/bind9.git/commit
Avoid netievent allocations when the callbacks can be called directly
authorOndřej Surý <ondrej@sury.org>
Wed, 2 Dec 2020 07:54:51 +0000 (08:54 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 2 Dec 2020 08:45:05 +0000 (09:45 +0100)
commitd6d2fbe0e9ad3eb85bb823fc534330bde7d2df6a
tree44c21a62e9c966b8b06524ec9cb1874d4da14a13
parent886eb5722d912fc55f5b887b11ff2fd55a9005da
Avoid netievent allocations when the callbacks can be called directly

After turning the users callbacks to be asynchronous, there was a
visible performance drop.  This commit prevents the unnecessary
allocations while keeping the code paths same for both asynchronous and
synchronous calls.

The same change was done to the isc__nm_udp_{read,send} as those two
functions are in the hot path.
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/udp.c