Stream: general

Topic: fast guest memory global allocator


view this post on Zulip Sehz (Mar 27 2024 at 18:15):

Does anyone know what global memory allocator (rust) WASM guest use ? And recommend alternative memory allocator?

Thanks

view this post on Zulip Dan Gohman (Mar 27 2024 at 18:17):

Rust guests currently use dlmalloc. For alternatives, one that I've used is lol_alloc which has some allocators with much smaller code size.

Like wee_alloc, but smaller since I used skinnier letters in the name. - Craig-Macomber/lol_alloc

view this post on Zulip Geoff Goodman (Mar 27 2024 at 19:09):

I can't vouch for this one but there is also talc: https://github.com/SFBdragon/talc

A fast and flexible allocator for no_std and WebAssembly - SFBdragon/talc

view this post on Zulip Sehz (Mar 27 2024 at 22:15):

Thanks for suggestions!


Last updated: Dec 23 2024 at 12:05 UTC