Spent some time today trying to replace difftastic's implementation of Dijkstra's algorithm with A* search.
I got a working implementation that passes tests: https://github.com/Wilfred/difftastic/commit/9a271169f68cdb678efe2035f5a4e45daeb6533d but sadly it's no faster. My slowest files still take 1.5 seconds with similar memory.
miniblog.
Related Posts
I fear software tends towards the slowest tolerable speed. We only optimise when it's hurting us.
Perhaps we need less tolerant users? :)
"Stories take an average of 8 seconds to load, by far the slowest single content type on Facebook." http://t.co/XdvR87MPo2 (web is bonkers!)