Skip to content

Optimize wasm file #95

@etrombly

Description

@etrombly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions