Sam Gross: Architect of Python's Optional GIL
Sam Gross reignited the discussion about removing the GIL in 2021 with his "nogil" branch, which laid the groundwork for PEP 703, proposing an optional GIL for CPython.
The top 3
- Sam Gross's GIL: Core Technical Innovations: Gross's proposal (PEP 703) revolutionizes Python's concurrency with biased and deferred reference counting, alongside a switch to `mimalloc` for thread-safe memory management, enabling CPython to run without a global lock.
- Optional GIL: Unlocking Multi-Threaded Performance: Gross's 'nogil' fork demonstrated significant performance gains, with multi-threaded CPU-bound workloads seeing up to an 18x speedup with 20 threads, while maintaining minimal overhead for single-threaded applications.
- Roadmap to Python's Optional GIL Integration: PEP 703, authored by Sam Gross, was formally accepted by the Python Steering Council in October 2023, with an experimental rollout in Python 3.13 and official support under PEP 779 in 3.14, though the GIL-enabled build remains the default.
Sources
Open the full topic