microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
9.74k stars 793 forks source link

Allow for configuration of tuning parameters #862

Closed englercj closed 2 months ago

englercj commented 4 months ago

Currently there is no way for a client application to tune these parameters without forking mimalloc. This change allows users to provide these values via their build system.

Related to https://github.com/microsoft/mimalloc/issues/647#issuecomment-1324109021 where it was suggested to change the tuning values, but I have no way of doing so without editing the source directly without this change.

daanx commented 2 months ago

I merged this manually. Thanks!