evenfurther / pathfinding

Pathfinding library for rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add more example

winstonma opened this issue · comments

I was trying to figure out how to use pathfinding to do the Advent of Code 2023 Day 17. Would you kindly add a solution in tests folder?

@samueltardieu Thanks for the example.

I got one question. When I try to run your solution against another solution on my laptop there is a difference in the runtime (30ms vs 250ms, the actual input) in the release build. What can I do to lower the difference?

My solution was written rapidly and ran fast enough for me to be satisfied and forget about it. It could probably be optimized, but I don't have the time nor the willingness to do so. Feel free to optimize it and submit a pull request if you can better it.

Thanks for reply.

The reason why I ask is because I am just not sure the optimization should be done within the crate or outside the crate (i.e. the example). Thanks for the example.