mimalloc_rust
mimalloc_rust copied to clipboard
A Rust wrapper over Microsoft's MiMalloc memory allocator
Hi, could we add an environment variable for dynamic linking? Something that like `CARGO_MIMALLOC_DYNAMIC_LINKING` that would do something akin to https://github.com/fede1024/rust-rdkafka/blob/master/rdkafka-sys/build.rs#L41 (finding the lib with pkg-config). There might be a...
It seems that this crate can't allocate memory with more than 2mb alignment. Not sure if this error is from mimalloc itself or somewhere else. To reproduce ```rust use mimalloc::MiMalloc;...
I tried using mimalloc version 0.1.29 with default features off (to turn secure mode off). It resulted in link.exe error ``` error: linking with `link.exe` failed: exit code: 1120 |...
Hello, thanks for maintaining these bindings. I was wondering if you can update your submodule of mimalloc from v1.6.7 to v2.0.0 to take advantage of the improvements.
I'm trying to use mimalloc as allocator in a wasm project of mine; as far as I know mimalloc supports wasm as target, but it failes to build. I'm not...
I wanted to package [difftastic](https://github.com/Wilfred/difftastic) for Alpine Linux, but find out that it’s using **bundled** mimalloc library from this crate. Memory allocator is very security sensitive piece of software, using...
Hi there, first of all thank you for the great crate! I have noticed that mimalloc has recently added support for compilation on Apple Silicon (https://github.com/microsoft/mimalloc/pull/344). Would it be possible...
WASM?
Any chance of getting an example of using MiMalloc to replace wee_alloc?
I was looking at the time crate wondering why the [time crate didn't give offsets](https://github.com/time-rs/time/issues/293), and I stumbled upon [this thread on Internals](https://internals.rust-lang.org/t/function-to-hold-lock-on-execution-environment-for-ffi/13702/22). This seems like a big problem so...
The mingw test are failing on random.c which is needing the bcrypt library. Compiling cc v1.0.67 Compiling libmimalloc-sys v0.1.21 (D:\fork\mimalloc_rust\libmimalloc-sys) warning: c_src/mimalloc/src/random.c:168: warning: ignoring '#pragma comment ' [-Wunknown-pragmas] warning: 168...