Ideas for simple dijkstra performance optimizations

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