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

feat(lib.rs): add mimalloc as the global allocator #578

Closed
wants to merge 0 commits into from

Conversation

sansyrox
Copy link
Member

@sansyrox sansyrox commented Aug 8, 2023

Description

Add a new allocator, this will result in a performance boost

@netlify
Copy link

netlify bot commented Aug 8, 2023

Deploy Preview for robyn canceled.

Name Link
🔨 Latest commit 70e76e5
🔍 Latest deploy log https://app.netlify.com/sites/robyn/deploys/64eb63613e0b6d000836b35f

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 8, 2023

CodSpeed Performance Report

Merging #578 will not alter performance

Comparing feat/add-mi-malloc (d602186) with main (416bc97)

Summary

✅ 100 untouched benchmarks

@sansyrox
Copy link
Member Author

This issue will be fixed when we retire python 3.7

@banipreetr
Copy link
Contributor

Interesting @sansyrox ! I am learning more about allocators and I'd be interested to know what motivated you to choose mimalloc over default system allocator? I see there are some other allocators as well (for example: tcmalloc, etc.). Why do we choose mimalloc here specifically?

Thanks!

@sansyrox
Copy link
Member Author

Hey @banipreetr 👋

Mimalloc offers a better performance in general cases. See here https://www.microsoft.com/en-us/research/uploads/prod/2019/06/mimalloc-tr-v1.pdf

We will have to properly integrate it here and benchmark the benefits it brings for us 😄

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.

2 participants