-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Use mimalloc for better performance #5678
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
base: main
Are you sure you want to change the base?
Conversation
@theoparis Do you have any concern? Please leave a comment if you have opinion about it. |
The only concern I had was that there is no way to disable mimalloc without modifying rustpython sources after this is merged. I've encountered crashes with jemalloc and chromium's allocator when another allocator is set globally via LD_PRELOAD for example - but maybe this isn't an issue with mimalloc? Other than that I think adding mimalloc is a good idea for performance reasons 👍🏼 |
@theoparis Thank you for explanation. In that case, adding a mimialloc feature will be helpful, right? |
Not an unreasonable request. |
I seem to have found a fix, I think I'll just make it environment variable only for now. |
I measured around a 10% performance improvement on pystones (better benchmarks coming soon).
Fixes: #5526