Skip to content

Commit 107f99d

Browse files
committed
EXPERIMENT: [C++] Always prefer mimalloc to jemalloc
1 parent cf832b8 commit 107f99d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cpp/src/arrow/memory_pool.cc

+1-6
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,10 @@ struct SupportedBackend {
8585

8686
const std::vector<SupportedBackend>& SupportedBackends() {
8787
static std::vector<SupportedBackend> backends = {
88-
// ARROW-12316: Apple => mimalloc first, then jemalloc
89-
// non-Apple => jemalloc first, then mimalloc
90-
#if defined(ARROW_JEMALLOC) && !defined(__APPLE__)
91-
{"jemalloc", MemoryPoolBackend::Jemalloc},
92-
#endif
9388
#ifdef ARROW_MIMALLOC
9489
{"mimalloc", MemoryPoolBackend::Mimalloc},
9590
#endif
96-
#if defined(ARROW_JEMALLOC) && defined(__APPLE__)
91+
#ifdef ARROW_JEMALLOC
9792
{"jemalloc", MemoryPoolBackend::Jemalloc},
9893
#endif
9994
{"system", MemoryPoolBackend::System}

dev/archery/archery/benchmark/runner.py

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def default_configuration(**kwargs):
123123
with_csv=True,
124124
with_dataset=True,
125125
with_json=True,
126+
with_mimalloc=True,
127+
with_jemalloc=True,
126128
with_parquet=True,
127129
with_python=False,
128130
with_brotli=True,

0 commit comments

Comments
 (0)