Project

General

Profile

Actions

Feature #22503

closed

Add --with-mimalloc to win32/configure.bat

Feature #22503: Add --with-mimalloc to win32/configure.bat

Added by hsbt (Hiroshi SHIBATA) 12 days ago. Updated 12 days ago.

Status:
Closed
Target version:
-
[ruby-core:127321]

Description

I'd like to add an opt-in --with-mimalloc option to win32/configure.bat. With it, only the default GC allocates with mimalloc, and the rest of the process keeps the CRT heap. The default build is unchanged.

On ruby-bench, the headline benchmarks take 0.948x the time with YJIT and 0.965x on the interpreter, compared with the same build without the option. That is about 5% and 3.5% faster overall, and about 4% in both modes across all 77 benchmarks. protoboeuf-encode and splay get slower.

mimalloc is installed by vcpkg as an optional feature of vcpkg.json. A new Windows CI job builds Ruby with clang-cl, YJIT and mimalloc.

https://github.com/ruby/ruby/pull/19686

Updated by hsbt (Hiroshi SHIBATA) 12 days ago Actions #1

  • Status changed from Open to Closed
Actions

Also available in: PDF Atom