[#35] Use less memory by not converting generator into list