Description
Describe the bug
While trying to test out #1442, I noticed that JSOO took up 10gb of RAM on my mac while building libbinaryen. It completed; however, when running in CI, we're getting fatal OoM errors. See grain-lang/libbinaryen#78 for the CI runs.
Expected behavior
Expected to take up less memory and/or not crash with OoM.
Versions
OCaml: 4.13.1 and 4.14.0
JSOO: master
OS: Linux and Windows (the Mac runners might be larger??)