Skip to content

Commit

Permalink
EXPERIMENT: [C++] Always prefer mimalloc to jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Mar 28, 2024
1 parent cf832b8 commit 107f99d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions cpp/src/arrow/memory_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,10 @@ struct SupportedBackend {

const std::vector<SupportedBackend>& SupportedBackends() {
static std::vector<SupportedBackend> backends = {
// ARROW-12316: Apple => mimalloc first, then jemalloc
// non-Apple => jemalloc first, then mimalloc
#if defined(ARROW_JEMALLOC) && !defined(__APPLE__)
{"jemalloc", MemoryPoolBackend::Jemalloc},
#endif
#ifdef ARROW_MIMALLOC
{"mimalloc", MemoryPoolBackend::Mimalloc},
#endif
#if defined(ARROW_JEMALLOC) && defined(__APPLE__)
#ifdef ARROW_JEMALLOC
{"jemalloc", MemoryPoolBackend::Jemalloc},
#endif
{"system", MemoryPoolBackend::System}
Expand Down
2 changes: 2 additions & 0 deletions dev/archery/archery/benchmark/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def default_configuration(**kwargs):
with_csv=True,
with_dataset=True,
with_json=True,
with_mimalloc=True,
with_jemalloc=True,
with_parquet=True,
with_python=False,
with_brotli=True,
Expand Down

0 comments on commit 107f99d

Please sign in to comment.