3 ms·
Emscripten has an option to chunk the typed array, https://github.com/kripken/emscripten/wiki/Split-Memory https://github.com/kripken/emscripten/wiki/Split-Mem
by azakai 11y ago
Emscripten has an option to chunk the typed array,
https://github.com/kripken/emscripten/wiki/Split-Memory https://github.com/kripken/emscripten/wiki/Split-Memory
In that mode, memory allocation is basically like in C and C++: each block can be allocated and freed independently.
Of course, this does have a performance cost, so it's a tradeoff.