Skip to content

Size regression in wasm builds from 1.39.1-fastcomp to 1.39.1 due to pthreads passive data segments not optimized for zeros #9775

@niklasf

Description

@niklasf

There's a huge increase in binary size when building https://github.com/niklasf/stockfish.wasm (v0.5.11) with the latest emscripten.

Any information I could provide that would help to narrow this down?

1.38.48 (last good):

392K	stockfish.wasm
144K	stockfish.js
12K	stockfish.worker.js
40K	stockfish.js.mem
592K	total

1.39.0 (first bad):

1,3M	stockfish.wasm
144K	stockfish.js
12K	stockfish.worker.js
40K	stockfish.js.mem
1,5M	total

1.39.1 (still bad).

Flags: https://github.com/niklasf/stockfish.wasm/blob/bb648dd021e3e585def8b86050800f47001524a5/src/Makefile#L243

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