I’m not a front developper but I had a lot of fun playing around and getting quickly a result.
I worked a bit with France’s national railway network data and made a shortest path algorithm. You can try it out by selecting a departure and arrival (let’s say Paris and Marseille).
It works marvelously well, but I wanted to make a “real” JS app (but again, I’m no front developper).
I thought it would be easy, and copied-pasted my code from observable. Alas! The performances are very bad. Where it feels instantaneous on Observable, it takes a few seconds (~a factor 10 I’d say).
I think I ruled out any framework interaction (I used vue-js, but in the end I used just vanilla js). The time is really spent in the
bellman function (the one making the route calculation).
So… This is not really a request for help. Just a curiosity, is there some voodoo magic that would explain its performance ?