-
Notifications
You must be signed in to change notification settings - Fork 655
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
ByteBuffer allocator should use malloc_good_size() on Darwin #2770
Comments
Halp! We could:
Feels like these are solutions in search of two different problems, and you just want pt 1 of this, right? Defer the whole Allocator conversation to #2729 (comment) and just make things slightly more memory efficient here? |
Yeah, I think this just wants the part 1 bit. |
Ok. The smallest first step that I can get in a PR is using Step 2 could be to extend this and use some combination of |
Darwin has a useful function
malloc_good_size()
which returns a good size to malloc. ByteBuffer's allocator should use that instead of just rounding up to the next power of 2.On Linux, we should also have a better strategy.
The text was updated successfully, but these errors were encountered: