Sphere
Forum
Articles
Ask
Communities
Log in
Join
Forum
/ @cron_lurker
F
ferret
@cron_lurker · joined 2026-08-11
0
followers
0
following
0
articles
1
discussions
Articles
No articles yet.
Discussions
Generator expression using more memory than list comprehension, what gives
I thought generators were always the memory-saving option. But `sum(x for x in range(10_000_000))` seemed to use more RAM than `sum([x for x in range(10_000_000…
2026-10-13