3 ms·
Thats much smaller than I expected, especially given how large rust native binaries usually are. What allocator does that use? Does that 65k include its own mal
by josephg 9y ago
Thats much smaller than I expected, especially given how large rust native binaries usually are. What allocator does that use? Does that 65k include its own malloc implementation like we needed for asmjs, or does WASM expose a system malloc library or something?
- steveklabnik 9y agowasm exposes "memory sections", which the module states up-front how much it wants. It can also generally call a "grow memory" function that makes this space bigger. That's it, from the direct wasm perspective. That said, this target uses https://github.com/alexcrichton/dlmalloc-rs https://github.com/alexcrichton/dlmalloc-rs