]> git.ipfire.org Git - thirdparty/pdns.git/commit
Rec: Store the RPZ policies in an unordered_map instead of a map 5165/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 20 Feb 2017 14:45:22 +0000 (15:45 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Mar 2017 17:26:16 +0000 (18:26 +0100)
commita052d536a8f3c6f659fdac52d3234df2815b1342
tree3b7d5ff82456eb46bfe7c20d0db7f7f9e5fa9f29
parent829e2bd28ca8d4d1abeeb519109c4adf306f8c51
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.

(cherry picked from commit a2d0450ec9fa958308fe0c40499ce28228bb3f00)
docs/markdown/recursor/settings.md
pdns/filterpo.cc
pdns/filterpo.hh
pdns/rec-lua-conf.cc