3 ms·
They said why right there. Floating point numbers take up more space in memory and can only store smaller values than internet.
by dartos 3y ago
They said why right there. Floating point numbers take up more space in memory and can only store smaller values than internet.
- remexre 3y agoAre you sure they're not talking about code size? Not sure what limiting instantiations would have to do with heap size... (I also find it surprising that avoiding floats helps anything; maybe just in avoiding more instantiations? Because if the std floating point functions don't fully inline, you've got bigger problems than wasm blob size...)
- __s 3y agoI'm talking about code size. Wasm has efficient encodings for small integers, but constants for floats always take up 5/9 bytes
- crabmusket 3y agoOh I see! Was this the main benefit, not the use of fixed point algorithms?