by MathMonkeyMan · 2y ago · 0 comments
The journey was:
- naive python solver: https://github.com/dgoffredo/wait-time/blob/master/solver.py
- "optimized" solver that ended up being slower due to more time spent in the python interpreter: https://github.com/dgoffredo/wait-time/blob/master/solver_op...
- used Shed Skin to speed up the python bits, but I don't recall whether I got it to integrate with the fsolve module (I doubt it in retrospect)
- rewrote it all in C++ templates using some professor's linpack port; MUCH faster: https://github.com/dgoffredo/hybrd/blob/d84013352797e61d449b...
No comments yet.