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

Threaded apply #243

Open
python-mario-bot opened this issue Sep 7, 2019 · 0 comments
Open

Threaded apply #243

python-mario-bot opened this issue Sep 7, 2019 · 0 comments

Comments

@python-mario-bot
Copy link
Contributor

python-mario-bot commented Sep 7, 2019

Currently, apply builds a list of all the inputs instead of incrementally applying the function. This can result in large memory usage. Threading can be used to treat the AsyncIterable[T] stream as a sync Iterable[T] and apply the function without materializing a whole list. This would require users who want to build a list to explicitly create the list from the iterable.

@python-mario-bot python-mario-bot added the enhancement New feature or request label Sep 7, 2019
@python-mario-bot python-mario-bot added possible breaking change and removed enhancement New feature or request labels Dec 18, 2019
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