Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: set jemalloc as global allocator #290

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Conversation

ivan-aksamentov
Copy link
Member

@ivan-aksamentov ivan-aksamentov commented Dec 6, 2024

https://jemalloc.net

https://doc.rust-lang.org/std/alloc/index.html#the-global_allocator-attribute

We are not very prudent with our memory allocation. Jemalloc gives us little bit of slack. I measured a moderate speedup of about 7-10% on mpox-500 data.

Once we have a more comprehensive ans automated perf testing suite, we could try and measure other allocators, e.g.

  • mimalloc
  • snmalloc
  • tcmalloc

It does not even build on darwin or mingw
@ivan-aksamentov ivan-aksamentov merged commit 4538fd6 into rust Dec 6, 2024
13 of 14 checks passed
@ivan-aksamentov ivan-aksamentov deleted the perf/jemalloc branch December 6, 2024 01:56
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