Simon Willison’s Weblog

Speeding up dateutil: Python's heapq module turns minutes into seconds. Neat case study in data structure optimisation.