wasm-git
wasm-git copied to clipboard
Optimize wasm file
Stripping the debug symbols and optimizing with wasm-opt cuts lg2.wasm down from 6.3Mb to 1.1Mb, and seems to execute a little faster (only minimally tested). May want to see if you can do the same thing for the packaged version.
wasm-opt --strip-debug -O3 emscriptenbuild/libgit2/examples/lg2.wasm -o emscriptenbuild/libgit2/examples/lg2-stripped.wasm