Python's 3 Key Failed GIL Removal Attempts

Notable past efforts to remove Python's GIL include Greg Stein's early 'free threading' (Python 1.6), Unladen Swallow (Python 2.6/3.x), and Larry Hastings' 'Gilectomy' (Python 3.5), all of which faced significant hurdles, primarily performance regressions.

The top 3

  1. Python 1.5's GIL-Free Experiment: Why It Failed: An early attempt in Python 1.5 removed the GIL, replacing it with various finer-grained locks, but benchmark tests showed disappointing performance, leading to its reintroduction.
  2. Unladen Swallow: Google's Ambitious GIL Removal Project: Google's Unladen Swallow project (2009-2011) aimed to integrate a JIT compiler and remove the GIL, but faced challenges with Python 3 compatibility, single-threaded performance degradation, and ultimately lost funding, leading to its discontinuation.
  3. Larry Hastings' 'Gilectomy': Single-Thread Performance Hurdle: Larry Hastings' 'Gilectomy' project (2016) attempted to remove the GIL using fine-grained locks, achieving multi-core scaling but causing a slowdown in single-threaded applications, a trade-off deemed impractical for CPython's broad user base.

Sources

Open the full topic