]> granicus.if.org Git - pdns/commit
Rec: Store the RPZ policies in an unordered_map instead of a map
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 20 Feb 2017 14:45:22 +0000 (15:45 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 20 Feb 2017 14:46:34 +0000 (15:46 +0100)
commita2d0450ec9fa958308fe0c40499ce28228bb3f00
treef63909585799230867c15a4a412d09431f52e278
parent353c76cb9d6fcbfb9eaca7bdfe9ef28768aecb40
Rec: Store the RPZ policies in an unordered_map instead of a map

This speeds up the loading of huge zones a bit (~20%) while also nicely
improving the lookup speed.
Also adds a `zoneSizeHint` parameter to `rpzFile()` and `rpzMaster()` to be
able to reserve space before loading the zone, to prevent reallocation
and rehashing when possible.
docs/markdown/recursor/settings.md
pdns/filterpo.cc
pdns/filterpo.hh
pdns/rec-lua-conf.cc