Python in Parallel: Sub-Interpreters vs. NoGIL vs. Multiprocessing
EuroPython Conference via YouTube
Overview
Explore the evolving landscape of parallel processing in Python through this 28-minute conference talk from EuroPython 2024. Delve into three key approaches for achieving parallelism: sub-interpreters, NoGIL (Global Interpreter Lock removal), and multiprocessing. Learn about the upcoming changes in Python 3.12 and 3.13 that introduce per-Interpreter GIL and enhanced support for sub-interpreters. Discover the potential of a NoGIL future where Python threads can truly run in parallel. Compare and contrast these methods, understanding their unique trade-offs, complexities, and suitability for different problem types. Gain valuable insights to make informed decisions when building CPU-bound high throughput applications or IO-bound services, and prepare for the future of parallel computing in Python.
Syllabus
Python in Parallel: Sub-Interpreters vs. NoGIL vs. Multiprocessing — Samet Yaslan
Taught by
EuroPython Conference