Ideas for simple dijkstra performance optimizations

Mostly around finding single paths. Take this with a grain of salt, it's
working in progress.