-
Notifications
You must be signed in to change notification settings - Fork 13.3k
optimize dynamic allocation alignment #17092
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
Comments
Does this apply to the size also? |
@huonw: It's just an issue for non-standard alignment, since jemalloc needs to do a branch to support it. For a |
minor: Update `per_query_memory_usage` query listing
minor: Update `per_query_memory_usage` query listing
The non-jemalloc allocator implementation should branch on the Rust end in order to use
malloc
/realloc
/free
. It will optimize out in essentially every real-world case, since alignment is rarely dynamic.Exposing functions without the alignment parameter may also make sense, and having a branch on the Rust side for jemalloc would eliminate a branch for the low alignment case inside the allocator.
The text was updated successfully, but these errors were encountered: