News for hackers. Stuff that matters.
Re:Python 3.11 vs 3.10 performance by andrewaylett on Thursday July 07, 2022 @10:56AM (#32014904)
Since it's all generator expressions internally anyway, an intermediate doesn't actually add appreciable (any?) runtime overhead but does make the code more readable:

    ys = (x.ComputeSomething() for x in xs)
    result = [y for y in ys if y.isFoo and y.isBar]

There are no comments on this comment yet.