Tom Ritchford
Dec 7, 2023

--

Great article in general, but list comprehensions aren't a pipeline and aren't a good idea for these sorts of computations, because all the first stage of calculation is done before the second stage is even started, and that means you need to store all the results in memory.

It might even be that the first sequence in your pipeline is infinitely long, so it can't be computed in full!

Good article, though, accept claps.

--

--

No responses yet