diff --git a/2024/Cargo.toml b/2024/Cargo.toml index 4da11e5..653cb7a 100644 --- a/2024/Cargo.toml +++ b/2024/Cargo.toml @@ -8,3 +8,4 @@ pathfinding = "4.11.0" rayon = "1.10.0" regex = "1.10.2" indexmap = { version = "2.7.0", features = ["rayon"] } +hashbrown = { version = "0.15.2", features = ["rayon", "nightly"] } diff --git a/2024/day11/Cargo.toml b/2024/day11/Cargo.toml index 2b49c0b..5d4e085 100644 --- a/2024/day11/Cargo.toml +++ b/2024/day11/Cargo.toml @@ -12,3 +12,4 @@ itertools = { workspace = true } pathfinding = { workspace = true } rayon = { workspace = true } indexmap = { workspace = true } +hashbrown = { workspace = true } diff --git a/2024/day11/src/main.rs b/2024/day11/src/main.rs index 8038e4d..7977ade 100644 --- a/2024/day11/src/main.rs +++ b/2024/day11/src/main.rs @@ -1,4 +1,4 @@ -use std::collections::HashMap; +use hashbrown::HashMap; fn part(input: &str, count: u64) -> u64 { let mut stones = input