4 ms·
I used Shed Skin in the long long ago to speed up a solver for a queuing problem I was playing with. The journey was: - naive python solver: https://github.co
by MathMonkeyMan 3y ago
I used Shed Skin in the long long ago to speed up a solver for a queuing problem I was playing with.
The journey was:
- naive python solver: https://github.com/dgoffredo/wait-time/blob/master/solver.py 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_optimized.py 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/d84013352797e61d449bc79ca1c28eae3e369638/minpack%2B%2B.cpp#L3127-L3131 https://github.com/dgoffredo/hybrd/blob/d84013352797e61d449b...