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

Make allocations < 16 bytes more space efficient #1011

Closed
wkozaczuk opened this issue Nov 12, 2018 · 0 comments
Closed

Make allocations < 16 bytes more space efficient #1011

wkozaczuk opened this issue Nov 12, 2018 · 0 comments
Labels

Comments

@wkozaczuk
Copy link
Collaborator

The malloc family calls requesting less than 16 bytes end up allocating full page (4K) for each call. This is very wasteful and can be easily fixed by tweaking if/else condition in here.

Notes from @Nadav - "When size is tiny, we anyway allocate not "size" but rather memory::pool::min_object_size (see the "max" code below), so we need the alignment to be less than that, not the size."

This issue is discussed in more detail in this mailing group email.

@wkozaczuk wkozaczuk added the bug label Nov 16, 2018
@nyh nyh closed this as completed in a58f446 Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant