#Very different sizes of wasm binary

1 messages · Page 1 of 1 (latest)

astral comet
#

I was compiling a project with all release modes (for wasm32-wasi-musl) and checking out binary sizes:

  • Debug: 2M
  • ReleaseFast: 1M
  • ReleaseSafe: 1.1M
  • ReleaseSmall: 70k

I'm wondering why ReleaseFast is so big compared to ReleaseSmall.

fallow wasp
#

it contains debug information which takes up a lot of space

#

you can do strip to remove that

astral comet
#

ah, I assumed release fast was stripped

#

thanks!

#

we need "time to first reply" shown in the threads, would make a good speedrun category

fallow wasp
#

lol

#

true

thorn elm
#

huh i always assumed Release build were stripped
i find it strange that it's not the case

fallow wasp
#

there are plenty of usecases where you need to debug with an optimized build, and release fast never claimed to be small.

thorn elm
#

yes but wouldn't it make more sense to be a ReleaseWithDebugInfo mode?