diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-05 00:07:13 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-05 00:07:13 +0200 |
| commit | 061792ee76fcf2c2de3b0e966e6f5324fc9fe7bd (patch) | |
| tree | ad11af99ea9ebc9afe2a3a55cc88775a337960ee /2022/19/a.rs | |
| parent | 6a717cd07577844a7d4183caa99b75149081d010 (diff) | |
| download | aoc-061792ee76fcf2c2de3b0e966e6f5324fc9fe7bd.tar.gz aoc-061792ee76fcf2c2de3b0e966e6f5324fc9fe7bd.zip | |
Some performance improvements
Diffstat (limited to '2022/19/a.rs')
| -rw-r--r-- | 2022/19/a.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/2022/19/a.rs b/2022/19/a.rs index 57e83e6..7264579 100644 --- a/2022/19/a.rs +++ b/2022/19/a.rs | |||
| @@ -8,7 +8,7 @@ fn main() { | |||
| 8 | let mut i = 1; | 8 | let mut i = 1; |
| 9 | let mut sum = 0; | 9 | let mut sum = 0; |
| 10 | for bp in read_blueprints_from_stdin() { | 10 | for bp in read_blueprints_from_stdin() { |
| 11 | let mg = most_geodes(&bp, Status::new(), MINUTES, &mut mem); | 11 | let mg = most_geodes(&bp, Status::new(), MINUTES, &mut mem, 0); |
| 12 | println!("{i}: {mg}"); | 12 | println!("{i}: {mg}"); |
| 13 | sum += i * mg; | 13 | sum += i * mg; |
| 14 | mem.clear(); | 14 | mem.clear(); |
