Skip to content

Conversation

emilk
Copy link
Owner

@emilk emilk commented May 6, 2025

mimalloc is a much faster allocator, especially important when doing a lot of small allocations (which egui does).

We use mimalloc in Rerun, and I recommend everyone to use it.

The difference it makes

image

Copy link

github-actions bot commented May 6, 2025

Preview available at https://egui-pr-preview.github.io/pr/7029-emilkuse-mimalloc-for-benchmarks
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

Copy link
Collaborator

@lucasmerlin lucasmerlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

We use mimalloc in Rerun, and I recommend everyone to use it.

I think we should mention this somewhere in the readme then.

@emilk emilk merged commit 7216d0e into master May 6, 2025
46 of 47 checks passed
@emilk emilk deleted the emilk/use-mimalloc-for-benchmarks branch May 6, 2025 15:54
darkwater pushed a commit to darkwater/egui that referenced this pull request Aug 24, 2025
`mimalloc` is a _much_ faster allocator, especially important when doing
a lot of small allocations (which egui does).

We use `mimalloc` in Rerun, and I recommend everyone to use it.

## The difference it makes

![image](https://github.com/user-attachments/assets/b22e0025-bc5e-4b3c-94e0-74ce46e86f85)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants