use endpoints map to keep score (size of map)

This commit is contained in:
2024-12-10 23:07:05 +00:00
parent 2c3e68d884
commit c12cc2c38e
4 changed files with 21 additions and 32 deletions

View File

@@ -2,14 +2,14 @@ goos: linux
goarch: amd64
pkg: github.com/onyx-and-iris/aoc2024/day-10
cpu: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
BenchmarkSolve-12 1000000000 0.002208 ns/op
BenchmarkSolve-12 1000000000 0.002135 ns/op
BenchmarkSolve-12 1000000000 0.002113 ns/op
BenchmarkSolve-12 1000000000 0.002273 ns/op
BenchmarkSolve-12 1000000000 0.002123 ns/op
BenchmarkSolve-12 1000000000 0.002133 ns/op
BenchmarkSolve-12 1000000000 0.002054 ns/op
BenchmarkSolve-12 1000000000 0.002107 ns/op
BenchmarkSolve-12 1000000000 0.002664 ns/op
BenchmarkSolve-12 1000000000 0.002081 ns/op
ok github.com/onyx-and-iris/aoc2024/day-10 0.167s
BenchmarkSolve-12 1000000000 0.001775 ns/op
BenchmarkSolve-12 1000000000 0.001641 ns/op
BenchmarkSolve-12 1000000000 0.001804 ns/op
BenchmarkSolve-12 1000000000 0.001658 ns/op
BenchmarkSolve-12 1000000000 0.001679 ns/op
BenchmarkSolve-12 1000000000 0.001703 ns/op
BenchmarkSolve-12 1000000000 0.001641 ns/op
BenchmarkSolve-12 1000000000 0.001627 ns/op
BenchmarkSolve-12 1000000000 0.001654 ns/op
BenchmarkSolve-12 1000000000 0.001719 ns/op
ok github.com/onyx-and-iris/aoc2024/day-10 0.135s