Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Hunting Performance in Python Code: Measuring Memory Consumption. Parent comment
Building a list of 10,000,000 items:
List comprehension: 599ms For loop: 930ms For loop with append localized: 736ms
Building a list of 10,000,000 items:
List comprehension: 599ms For loop: 930ms For loop with append localized: 736ms