Is it better to use Global or System in a local memory allocator?

โš“ Rust    ๐Ÿ“… 2026-04-08    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 4      

surdeus

I was just wondering which is more suitable to use for allocating large(-ish) blocks.

Typically two 1MB blocks will be allocated when a thread starts and be freed when it terminates. ( Code here )

It allocates more as necessary ( but all are returned on thread termination ).

Maybe it doesnโ€™t matter or make any difference?

1 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed