wasm-git icon indicating copy to clipboard operation
wasm-git copied to clipboard

Optimize wasm file

Open etrombly opened this issue 3 months ago • 3 comments

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

etrombly avatar Apr 25 '24 12:04 etrombly