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

Avoid redundant lookups in the active slab when spawning new tasks #96

Merged
merged 3 commits into from
Feb 17, 2024

Conversation

james7132
Copy link
Contributor

The fetch of a vacant entry just to get the key then inserting it when spawning tasks works, but does an extra unnecessary Slab lookup. This PR changes it so that the located entry is directly inserted to.

Copy link
Collaborator

@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 568a314 into smol-rs:master Feb 17, 2024
8 checks passed
@notgull notgull mentioned this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants