]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Get rid of allocations in the packet cache's fast path 9420/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 28 Aug 2020 08:42:23 +0000 (10:42 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 28 Aug 2020 08:42:23 +0000 (10:42 +0200)
commit83c22ef3ded5bd60058a6f46bf202eb7e8ff4029
tree4bbf7eeb9280016fe556537fcf44c91d4747df8b
parent4e11102aa21f12e479495cfa3858aa08e06cb2a6
dnsdist: Get rid of allocations in the packet cache's fast path

This delivers a nice speed-up, up to ~40% in unrealistic micro-benchmarks,
likely much less in practice.
pdns/dnsdist-cache.cc
pdns/dnsdist-cache.hh
pdns/fuzz_dnsdistcache.cc