]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Reorganize the IDState and Rings fields
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 May 2021 13:53:56 +0000 (15:53 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 May 2021 13:55:48 +0000 (15:55 +0200)
commit5091f6c04b4bc270b2400e1d456b7a1459c64daa
treeb1879c91766856e4c3bf4e977666789682abed0d
parent4cadb4865ce670f638ccd435c057df14b30c66b7
dnsdist: Reorganize the IDState and Rings fields

Reducing the space lost to padding and thus the memory usage. This
change saves 1 MB of memory per downstream server in the default
configuration, and around 8 bytes per entry in the ring buffer.
pdns/dnsdist-rings.hh
pdns/dnsdist.hh
pdns/dnsdistdist/test-dnsdistrings_cc.cc