mario icon indicating copy to clipboard operation
mario copied to clipboard

Threaded apply

Open python-mario-bot opened this issue 5 years ago • 0 comments

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 avatar Sep 07 '19 05:09 python-mario-bot