fix: Use mimalloc for c/c++ code by default

This commit is contained in:
Jade Ellis committed 2026-11-21 15:21:56 +00:00
1 parent 43cf8cccdf
commit d4aec6ca5c
4 files changed
+6 -11

No files matched your search

+4
View File
@@ -31,9 +31,13 @@ jemalloc = [
"dep:tikv-jemalloc-ctl",
"dep:tikv-jemallocator",
]
# Uses mimalloc for Rust allocations and, via `override`, exports
# malloc/free/etc. so C/C++ dependencies (RocksDB, zstd, lz4, ...) use it too.
# Mutually exclusive with `jemalloc` on non-MSVC targets.
mimalloc = [
"dep:libmimalloc-sys",
"dep:mimalloc",
"libmimalloc-sys/override",
]
jemalloc_conf = []
jemalloc_prof = [