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

Restructure early break in recreate_vacant_list() #132

Conversation

CosmicHorrorDev
Copy link
Contributor

This is just a slight optimization in the early break logic of .recreate_vacant_list(). It appears to make a measurable difference (>5%) when .recreate_vacant_list() ends up walking large portions of the slab

@CosmicHorrorDev
Copy link
Contributor Author

Forgot to remove that test from playing around 😅

I can clean that up later tonight

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit 09cbd95 into tokio-rs:master Feb 19, 2023
@Darksonn Darksonn mentioned this pull request Feb 19, 2023
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.

2 participants