fathominfo / delphy-web

Other
5 stars 0 forks source link

Optimize WASM, minimize JS for release builds #3

Open benfry opened 2 months ago

benfry commented 2 months ago

Discussed in https://github.com/fathominfo/delphy-web/discussions/2

Originally posted by **robertaboukhalil** August 27, 2024 Hello, I came across this tool recently, really nice work! Random thought: While digging around, I noticed that delphy.js is not minified and that the delphy.wasm file is 20MB. I'm wondering whether you ran Emscripten with -g? If so, in my experience removing -g and adding -O2 or -O3 help reduce the size of the wasm & js files :)