PEP 703's BRC: Python's Official Path to Optional GIL

Biased Reference Counting is a cornerstone of PEP 703, the proposal authored by Sam Gross and formally accepted in October 2023, which makes the Global Interpreter Lock optional in CPython. This phased rollout, experimental in Python 3.13 and officially supported in 3.14, paves the way for true multi-core parallelism in Python.

The top 3

  1. PEP 703's Architect: Sam Gross's Decades-Long Pursuit: PEP 703, making Python's GIL optional, was primarily authored by Sam Gross at Meta, whose persistent work on a no-GIL CPython proof-of-concept for years finally led to its acceptance. The Python Steering Council formally accepted the PEP on October 24, 2023, after previous attempts to remove the GIL failed due to performance regressions on single-threaded workloads.
  2. BRC's Performance Impact: Multi-Core Gains vs. Single-Thread Cost: While free-threaded Python (via PEP 703) enables true parallel execution for CPU-bound multi-threaded tasks, potentially offering 2x-4x speedups, it introduces a single-threaded performance penalty. Initially, this penalty was around 40% in experimental Python 3.13 builds, but has been significantly reduced to roughly 5-10% in Python 3.14 due to optimizations like the specializing adaptive interpreter.
  3. Optional GIL's Phased Rollout & Key Ecosystem Hurdles: PEP 703's optional GIL is being rolled out in phases: experimental in Python 3.13, officially supported in Python 3.14, with a default switch deferred for years (possibly 2028+). A major hurdle is C extension compatibility, as the free-threaded build is not ABI-compatible, requiring extensions to be rebuilt and potentially modified to handle thread safety explicitly.

Sources

Open the full topic