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

Deal with TypedPipes with FanOut #513

Open
johnynek opened this issue Jul 26, 2013 · 0 comments
Open

Deal with TypedPipes with FanOut #513

johnynek opened this issue Jul 26, 2013 · 0 comments

Comments

@johnynek
Copy link
Collaborator

right now, the Typed-API does all the mapping in one scala.Function1. But if you do:

val mid = a.map(f1)
val end1 = mid.map(f2)
val end2 = mid.map(f3)
``
Then end1 will compute `f1 andThen f2` and end2 with compute `f1 andThen f3`. In some cases this will be much worse than only doing f1 once.

We should at least allow explictly forcing the intermediate node, and it would be nice if it automatically happened.
@johnynek johnynek mentioned this issue Jul 26, 2013
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

No branches or pull requests

1 participant