01:40Talks - Anthony Shaw: Unlocking the Parallel Universe: Subinterpreters and Free-Threading in...
From the creator
Full title: Unlocking the Parallel Universe: Subinterpreters and Free-Threading in Python 3.13 Presented by: Anthony Shaw Python 3.12 introduced a new parallel execution model called "sub interpreters" that uses a per-interpreter GIL to unlock a new way of writing parallel code that's faster than multiprocessing. Python 3.13 introduces another new parallel execution model called "free-threading" (previously called no-gil) that replaces that optionally removes the GIL so that threads can truly be parallel. Does free-threading make sub interpreters redundant? We'll answer that question in this talk. We unpack what sub interpreters are, how to use them and their limitations. We'll explore free-threading, the optional flag to remove the GIL in 3.13. Finally we look at a use case for sub interpreters and free-threading together, a multi-worker, multi-thread ASGI web server. We benchmark this against traditional web server architecture with multiprocessing and threading. So fasten your seatbelts, fellow Pythonistas! Let’s ride the comet tail of parallelism, leaving behind the single-threaded past. 🚀✨
Published 2024-08-28 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
01:40
19:55Announcing General Availability of Azure Bot Service and Language Understanding service
Microsoft Developer
57:29
09:02
18:59
12:24How to provisioning IoT devices at scale with IoT Hub Device Provisioning Service
Microsoft Developer
14:41TWC9: Connect(); On-Demand, Dev’s Guide to Azure, Future Workspace, Furby Hacking and more...
Microsoft Developer