You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many references to memory allocation in Wasm including the Rust book[1] claim that switching to wee_alloc is the best path forward. I did a deep dive here and found that to not be true.
Cons of wee_alloc
Latest release is 4 years+ old [4]
Unmaintained [2]
Memory leaks [3]
The general guidance is to use the default allocator. This issue is a historical reference to folks who will ask the question in the future.
In many references to memory allocation in Wasm including the Rust book[1] claim that switching to wee_alloc is the best path forward. I did a deep dive here and found that to not be true.
Cons of wee_alloc
The general guidance is to use the default allocator. This issue is a historical reference to folks who will ask the question in the future.
[1] https://rustwasm.github.io/docs/book/reference/code-size.html?highlight=wee#avoid-allocation-or-switch-to-wee_alloc
[2] rustwasm/wee_alloc#107
[3] rustwasm/wee_alloc#106
[4] https://crates.io/crates/wee_alloc/versions
The text was updated successfully, but these errors were encountered: