purpleprotocol / mimalloc_rust

A Rust wrapper over Microsoft's MiMalloc memory allocator
MIT License
486 stars 42 forks source link

Safe wrappers for mimalloc Heap type? #35

Open playXE opened 3 years ago

playXE commented 3 years ago

mimalloc has Heap type and functions to create instance of heap and allocate from it, maybe it is worth adding wrappers for them?

thomcc commented 3 years ago

@playXE I never saw this and you may not care anymore, but a while ago I wrote https://gist.github.com/thomcc/e2a2ae4cc2ac470cf6f186372834d8fc but never finished it. I intend to add a implementation of AllocRef for heap under a nightly flag soonish though to get a feel for the AllocRef api.