Skip to content

[Type] Add optional support for mimalloc#5814

Merged
hugtalbot merged 2 commits intosofa-framework:masterfrom
fredroy:use_mimalloc
Jan 14, 2026
Merged

[Type] Add optional support for mimalloc#5814
hugtalbot merged 2 commits intosofa-framework:masterfrom
fredroy:use_mimalloc

Conversation

@fredroy
Copy link
Copy Markdown
Contributor

@fredroy fredroy commented Dec 8, 2025

Mimalloc is an optimized replacement for memory management (allocation, etc)
https://github.com/microsoft/mimalloc

This is supposed to manage memory allocation better so potentially being faster and using less memory.

In our actual scenes (measured with batch mode), they are always a gain but quite modest, around 1 or 2% speedup. Benchmark on memory usage itself has not been measured.

mimalloc can be installed with apt for debian/linux (without a doubt with other distrib/packages manager) and homebrew for macos. No idea for windows, but one can always clone/build/install and set it in the cmake configuration.


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added this to the v26.06 milestone Dec 8, 2025
@fredroy fredroy added pr: status to review To notify reviewers to review this pull-request pr: new feature Implement a new feature labels Dec 8, 2025
@hugtalbot
Copy link
Copy Markdown
Contributor

I guess we should install this on the CI VM and check about the compatibility with Pixi packages, right @bakpaul ?

@hugtalbot hugtalbot added topic for next dev-meeting PR to be discussed in sofa-dev meeting pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request topic for next dev-meeting PR to be discussed in sofa-dev meeting labels Jan 6, 2026
@hugtalbot hugtalbot merged commit 514e999 into sofa-framework:master Jan 14, 2026
11 of 13 checks passed
@hugtalbot hugtalbot deleted the use_mimalloc branch January 14, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: new feature Implement a new feature pr: status ready Approved a pull-request, ready to be squashed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants