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

Update to -f logic #996

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

slawomir-pryczek
Copy link

  • You can now have several -f (factors) that'll be used evenly to calculate slab sizes, there's maximum of 10 factors which is defined as FACTOR_MAX_COUNT.

  • Some more logic that'll prevent having incorrect slab sizes instead of throwing an error, eg. if there's 8 byte alignment, having factor of 1 will increase next slab size by 8 bytes

  • No longer slabs with different sizes and same perslab will be created

…culate slab sizes, there's maximum of 10 factors which is defined as FACTOR_MAX_COUNT.

- Some more logic that'll prevent having incorrect slab sizes instead of throwing an error, eg. if there's 8 byte alignment, having factor of 1 will increase next slab size by 8 bytes
- No longer slabs with different sizes and same perslab will be created
@dormando
Copy link
Member

Thanks!

I like the fix for different sizes but same perslab. The rest I'm not super sure about right now: I added another feature a long time ago for specifying exact slab sizes directly. So anyone who normally wouldn't care would use the simple factor, but if you really want to hyper-optimize you can do your own factors and directly specify them.

Giving multiple factors seems confusing to users. I'll think about it though and come back when I get a chance.

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.

None yet

2 participants