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

Use syncStep in WeakAsync.liftK #1906

Merged
merged 1 commit into from Aug 18, 2023

Conversation

armanbilge
Copy link
Contributor

Really interesting brainstorm with @TimWSpence. We can avoid the overhead of submitting to Dispatcher, starting a fiber, creating an async boundary, etc. by first attempting to syncStep i.e. interpret F[_] directly into G[_]. If the given effect is only using Sync ops then it can be interpreted to entirety without needing the Dispatcher. If not, the Dispatcher serves as a fallback.

@mergify mergify bot added the free label Aug 17, 2023
Copy link
Collaborator

@jatcwang jatcwang left a comment

Choose a reason for hiding this comment

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

Cool stuff TIL!

@jatcwang jatcwang merged commit 7101375 into tpolecat:main Aug 18, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants