I tried a Fibonacci heap for my implementation of Dijkstra's algorithm, but it ended up being slower!
Apparently this is a common thing and Fibonacci heaps are very rare in practice:
Today I learnt about radix heaps! They're a faster min-heap when your values are monotonically increasing -- perfect for Dijkstra. It saved 15% runtime for difftastic :)
Wikipedia reference: https://en.wikipedia.org/wiki/Radix_heap
The library I'm using:
I've factored out the Vector and Edge definitions in difftastic so I can experiment with different graph search algorithms! It's so much easier when you can toggle between them.
So far A* is only 10% faster than Dijkstra, but I've found an additional 20% win that benefits all :)