1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-07-27 18:11:55 +00:00
Files
wasm-bindgen/crates/cli-support
Alex Crichton c915870526 Remove temporary object allocation
When returning a ptr/length for allocations and such wasm-bindgen's
generated JS would previously return an array with two elements. It
turns out this doesn't optimize well in all engines! (See ). It
looks like we can optimize the array destructuring a bit more, but this
is all generated code which doesn't need to be too readable so we can
also remove the temporary allocation entirely and just pass the second
element of this array through a global instead of the return value.

Closes 
2018-11-13 08:10:05 -08:00
..
2018-11-13 08:10:05 -08:00
2018-11-12 09:28:01 -08:00