wetneb / sheetshow

A renderer for sheet diagrams in bimonoidal categories
https://wetneb.github.io/sheetshow/
MIT License
11 stars 0 forks source link

Update to Glpk.js 3.0.0 #8

Open wetneb opened 4 years ago

wetneb commented 4 years ago

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).

wetneb commented 4 years ago

Asked for recommendations at https://github.com/jvail/glpk.js/issues/4

wetneb commented 4 years ago

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