Skip to content

dirmgr: Call shrink_to_fit on missing-microdesc hashtable

Nick Mathewson requested to merge nickm/arti:missing_shrink_to_fit into main

This hashtable starts out pretty large, but it can spend most of our runtime (when we aren't downloading) being small. To avoid doing too much work, I've made it so we only call shrink_to_fit twice per consensus: once when we're no longer pending, and once when we're complete.

Closes #388 (closed).

Merge request reports

Loading