Skip to content
Snippets Groups Projects
Commit 6f42c796 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

netdoc: Call shrink_to_fit() when we're done parsing rs sections

(Once we're done parsing these, the vector will never get any
longer.)
parent 1c6c05fa
No related branches found
No related tags found
1 merge request!400tor-netdoc: Save allocation space in GenericRouterstatus
......@@ -1326,6 +1326,7 @@ impl<RS: RouterStatus + ParseRouterStatus> Consensus<RS> {
}
relays.push(routerstatus);
}
relays.shrink_to_fit();
let footer = Self::take_footer(r)?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment