Skip to content

[wasm] Precompile for ecmult increases wasm release build (z) for my project from 69kB to 1181kB #427

Open
@junderw

Description

@junderw

(Ignoring the fact that WASM doesn't work on master right now)

I was shocked to notice that WASM binary size grew from 69kB to 1181kB on z release build running it through wasm-opt tool.

Deleting the file additions of precomputed_ecmult_gen.c and precomputed_ecmult.c from build.rs brought the size back down to 69kB (while still being broken due to other issues)

Perhaps there could be a feature similar to lowmemory that will lower the binary size.

There is a possibility that the inability for z release profile and wasm-opt tool not being able to remove any of the data (even in lowmemory feature mode with lower window, the binary size did not change) could be a hint toward the solution to the other WASM issues.

But for now, I am making this a separate issue, which may or may not be solved by solving the other WASM issues. Just putting it out there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions