diff --git a/README.md b/README.md index 3274797..ba47eba 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,9 @@ Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www. | [Day 20](./src/bin/20.rs) | `323.9µs` | `1.2ms` | | [Day 21](./src/bin/21.rs) | `64.1µs` | `494.7µs` | | [Day 22](./src/bin/22.rs) | `78.3µs` | `194.8µs` | -| [Day 23](./src/bin/23.rs) | `331.0µs` | `19.6ms` | +| [Day 23](./src/bin/23.rs) | `330.4µs` | `13.3ms` | -**Total: 36.54ms** +**Total: 30.24ms** --- diff --git a/src/bin/23.rs b/src/bin/23.rs index 684e6e5..1df2375 100644 --- a/src/bin/23.rs +++ b/src/bin/23.rs @@ -53,7 +53,7 @@ pub fn part_two(input: &str) -> Option { start = trim(start); // Find all paths to depth N iteratively to use rayon on the resulting paths. - const PRESEARCH_DEPTH: u8 = 2; + const PRESEARCH_DEPTH: u8 = 8; let mut paths = Vec::new(); let mut stack = Vec::new(); stack.push((start, 1u64 << start, 0, 0));