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

Optimize fiber id and executor access [series/2.0.x] #8716

Merged
merged 2 commits into from Apr 9, 2024

Conversation

ghostdogpr
Copy link
Member

ZIO.fiberId/ZIO.executor use ZIO.descriptor which constructs a case class by gathering values from fiber refs and other locations which are not even used. In particular, ZIO.fiberId/ZIO.fiberIdWith are used in potential hot paths such as Promise.make, Queue.take, Hub.take, Fiber.interrupt, etc. so it is worth optimizing.

@jdegoes jdegoes merged commit 9f8910d into zio:series/2.0.x Apr 9, 2024
19 checks passed
@ghostdogpr ghostdogpr deleted the fiberid-2.0 branch April 9, 2024 10:51
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