Skip to content
Snippets Groups Projects
Commit daa0e304 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Array based zone database with improved performance.

HAT-trie zone database wasn't effective for small number of zones,
because hashing presented a constant penalty. New zone database
is represented by an array of zones, sorted by number of labels and
then lexicographically. Zones are then grouped by the label count
into stack, so obviously mismatching names are pruned when searching.
Each labelcount group is then search either linearly or using binary
search based on the array length.
parent a432a6cf
Branches
Tags
1 merge request!89improved zonedb search, fixed root zone case + basic unit tests #242
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment