Skip to content

switch to mimalloc when using musl#79

Merged
Fleeym merged 1 commit into
mainfrom
musl-allocator
Jul 13, 2026
Merged

switch to mimalloc when using musl#79
Fleeym merged 1 commit into
mainfrom
musl-allocator

Conversation

@Fleeym

@Fleeym Fleeym commented Jul 13, 2026

Copy link
Copy Markdown
Member

Source: https://nickb.dev/blog/default-musl-allocator-considered-harmful-to-performance/

musl's memory allocator is crazy slow, in certain situations leading to slowdowns of up to 7x, especially when memory allocations happen often. Given that this is a web server, it's safe to assume this is the case.

Only include mimalloc when using musl, otherwise use the default allocator.

@Fleeym Fleeym merged commit 1d7e9a6 into main Jul 13, 2026
2 checks passed
@Fleeym Fleeym deleted the musl-allocator branch July 13, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant