2 ms·
Why is `datastreams` better than using generators and comprehensions, plus the itertools module in the standard library?
by msellout 11y ago
Why is `datastreams` better than using generators and comprehensions, plus the itertools module in the standard library?
- stuartaxelowen 11y agoIt makes working with iterators easy - this way you're always talking about one thing at a time, instead of the whole collection/iterator, making efficient computation easy. Also, the abstraction allows for optimizations like delegating to Apache Spark or other processes/threads.