pre-size ingredient map

This commit is contained in:
Ibraheem Ahmed 2025-06-25 18:57:54 -04:00
parent 93b152d9de
commit 32be70bbbf

View file

@ -184,6 +184,7 @@ pub mod shim {
fn default() -> Self {
Self(
papaya::HashMap::builder()
.capacity(256) // A relatively large capacity to hopefully avoid resizing.
.resize_mode(papaya::ResizeMode::Blocking)
.hasher(S::default())
.build(),