Skip to content

Conversation

@TrentHouliston
Copy link
Member

Currently every single task that is added to the scheduler is required to lock a pool mutex to find it's pool. There are too many mutex locks on this path currently and it's obviously slowing down the system as a whole.

While lock free queues will hopefully eventually solve the lower level queue problems, this higher level mutex to select a pool can be avoided by caching it on the reaction as once a reaction is created it will always target the same pool.

@TrentHouliston TrentHouliston merged commit 488ac53 into main Feb 6, 2025
12 of 14 checks passed
@TrentHouliston TrentHouliston deleted the houliston/cache_pool branch February 6, 2025 01:25
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