mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 19:08:32 +00:00
pre-size ingredient map
This commit is contained in:
parent
93b152d9de
commit
32be70bbbf
1 changed files with 1 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue