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

StreamingT use-case #657

Closed
ceedubs opened this issue Nov 16, 2015 · 1 comment
Closed

StreamingT use-case #657

ceedubs opened this issue Nov 16, 2015 · 1 comment

Comments

@ceedubs
Copy link
Contributor

ceedubs commented Nov 16, 2015

This is mostly a question for @non. But I think that the answer could be beneficial to others and that it would be nice if it were turned into some documentation, so a GitHub issue might be a good place.

I hadn't looked very closely at StreamingT until today. I'm now seeing that other than the first element, every single element is wrapped in an F[StreamingT[F, A]]. That is, for a stream of N elements, there are at least (N - 1) F instances. This seems like it could potentially be a performance concern. For example, I'm picturing a situation where I have batches of Future[List[A]] and I want to turn those into a single StreamingT[Future, A]. If I understand correctly, I would have to wrap each individual A element in its own Future, even though I can fetch a whole batch at a time.

However, I also think there is a pretty real possibility that I'm not picturing the same sort of use-cases as you are. In my example above, I think I'm kind of using StreamingT as a more constrained form of an FS2 stream/process. I was wondering what sort of use-cases you had in mind for StreamingT.

Thanks!

@ceedubs
Copy link
Contributor Author

ceedubs commented Apr 6, 2016

Obsolete because of #910.

@ceedubs ceedubs closed this as completed Apr 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant