tikv / jemallocator

Rust allocator using jemalloc as a backend
Other
332 stars 52 forks source link

Allow switching between different jemalloc source #88

Open BusyJay opened 1 month ago

BusyJay commented 1 month ago

jemalloc/jemalloc has slow pace on releasing new versions. Users may want to use a more cutting edge version that are only available on dev branch. To solve the problem, we may decouple this project from jemalloc source. So the dependency graph becomes:

jemalloc -> jemalloc-sys -> jemalloc-source

jemalloc-source will provide the source directory to source code and a build method to build the library.

And add a new package jemalloc-dev-source that can be a dropped-in jemalloc-source alternative that contains source code from dev branch. Users are expected to use cargo patch to override it.