Alastair is a full-stack developer for Bloomberg's news product. With a background in pure mathematics, he is a fan of big numbers, algorithmic efficiency and cleaning up code wherever he can.
Let’s take a closer look at generators and why you may not be getting your expected improvements. Sometimes the memory benefit is negated by necessity; sometimes it's by mistake. "Meta generators" can solve this problem, allowing a much wider range of safe, fast operations on very large generators.