4 ms·
I do the same with Python, replacing multilevel comprehensions with intermediary steps of generator expressions, which are lazy and therefore do not impact perf
by dorfsmay 1y ago
I do the same with Python, replacing multilevel comprehensions with intermediary steps of generator expressions, which are lazy and therefore do not impact performance and memory usage.
https://peps.python.org/pep-0289/ https://peps.python.org/pep-0289/