Open g-bauer opened 3 weeks ago
Adds mimalloc and jemalloc as optional allocators.
mimalloc
jemalloc
Use one of default, mimalloc, or jemalloc as rust flag to select allocator.
default
Example for mimalloc:
RUSTFLAGS="--cfg allocator=\"mimalloc\"" maturin build
The same can be used to run benches. Works with Pyhton package. mimalloc shows significant performance improvements for some cases (>20%).
Adds
mimalloc
andjemalloc
as optional allocators.Use one of
default
,mimalloc
, orjemalloc
as rust flag to select allocator.Example for
mimalloc
:RUSTFLAGS="--cfg allocator=\"mimalloc\"" maturin build
The same can be used to run benches. Works with Pyhton package.
mimalloc
shows significant performance improvements for some cases (>20%).