Why Python 3.6 is faster than Python 3.5?
summary
Python 3.6 is measurably faster than 3.5 because concrete changes land performance wins: the new compact dicts cut dictionary memory by about 20–25% and speed up workloads that iterate or build dicts, async improvements (optimized Future objects) give roughly a 25% throughput gain and the event loop itself sees ~5% wins, and a set of targeted fixes to decoders and formatting produce huge wins in niche cases (tens to hundreds of× in pathological benchmarks). Results come from the pyperf benchmark suite (≈40 real‑world tests stored as JSON) that compares branches and shows many benchmarks favoring 3.6.
AI-written summary · about
