• Tony Finch's avatar
    Improve qp-trie compaction in write transactions · 0858514a
    Tony Finch authored
    In general, it's better to do one thorough compaction when a batch of
    work is complete, which is the way that `update` transactions work.
    Conversely, `write` transactions are designed so that lots of little
    transactions are not too inefficient, but they need explicit
    compaction. This changes `dns_qp_compact()` so that it is easier to
    compact any time that makes sense, if there isn't a better way to
    schedule compaction. And `dns_qpmulti_commit()` only recycles garbage
    when there is enough to make it worthwhile.