Skip to content

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

Merged
taiki-e merged 3 commits intosmol-rs:masterfrom
james7132:vacant-entry
Feb 17, 2024
Merged

Avoid redundant lookups in the active slab when spawning new tasks#96
taiki-e merged 3 commits intosmol-rs:masterfrom
james7132:vacant-entry

Conversation

@james7132
Copy link
Copy Markdown
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
Copy Markdown
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
@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