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

Stream - microptimise EvalTap #3196

Merged
merged 1 commit into from
Apr 2, 2023
Merged

Conversation

diesalbla
Copy link
Contributor

Expand the implementation of evalMap inside evalTap. Instead of making the as call in the underlying effect F, we can just use the Pull >> sequencing operator, to ignore the result of running the action.

@diesalbla diesalbla force-pushed the evalTap_optimise branch 2 times, most recently from dde708d to b0152f0 Compare April 1, 2023 17:33
Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

Nice, always happy to drop a constraint.

Expand the implementation of evalMap inside evalTap.
Instead of making the `as` call in the underlying effect `F`, we can
just use the Pull `>>` sequencing operator, to ignore the result of
running the action.

For binary compatibility we keep an old version without the implicit.

Co-authored-by: Arman Bilge <armanbilge@gmail.com>
@diesalbla diesalbla merged commit a56efa2 into typelevel:main Apr 2, 2023
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