Concordium / concordium-rust-smart-contracts

Libraries and tools for writing and testing smart contracts on Concordium
https://docs.rs/concordium-std/latest/concordium_std/
Mozilla Public License 2.0
58 stars 35 forks source link

Investigate whether to repair or replace Wee Alloc #379

Closed Bargsteen closed 9 months ago

Bargsteen commented 10 months ago

Task description

We support a small allocator, wee_alloc, via a feature wee_alloc for our smart contracts. wee_alloc is not maintained and it has some outstanding bugs related to memory leaks (https://github.com/rustwasm/wee_alloc/issues/106).

We, therefore, want to investigate whether we should repair and replace wee_alloc. The main goal is that we want an allocator that has a small code size and works well for most smart contracts. It can be a very simple allocator as smart contracts are always short-lived and usually quite simple (especially in terms of allocation patterns).