Open wetneb opened 4 years ago
Asked for recommendations at https://github.com/jvail/glpk.js/issues/4
It turns out we are using an old version, we should upgrade to 3.0.0, which requires adapting the way we invoke Glpk: https://github.com/iMasanari/mhw-simulator/blob/3bd47b492e06265c03e3e79fe0e0b304134cd36e/src/worker/util/executeGlpk.ts
Glpk.js is fast, but it's heavy. We probably only use a fraction of the functionality it exposes. It would be nice to have a pure JS equivalent that would be reasonably fast and lighter.
We don't need constraint solving to be blazingly fast, it is only used when we first render the diagram (not when we rotate it, for instance).