Python in Parallel: Sub-Interpreters vs. NoGIL vs. Multiprocessing - Samet Yaslan

  Рет қаралды 751

EuroPython Conference

EuroPython Conference

Күн бұрын

[EuroPython 2024 - Forum Hall on 2024-07-12]
Python in Parallel: Sub-Interpreters vs. NoGIL vs. Multiprocessing by Samet Yaslan
ep2024.europyt...
In the realm of Python development, achieving parallelism and harnessing the full power of modern multi-core processors is challenging. Traditionally constrained by the Global Interpreter Lock (GIL), multi-threading was not useful for true parallelism in Python, hence developers turned into multi-processing. Now this is all changing with upcoming developments.
- A new per-Interpreter GIL in Python 3.12 helps to facilitate true parallelism by opening up sub interpreters to run Python codes at the same time. In addition, it is going to be easier to use these features in Python 3.13 by having support for sub interpreters in the Stdlib.
- An upcoming compile option to disable-gil is opening a path to a world with NoGIL where Python threads can truly run in parallel. Which can potentially become the default in the upcoming years.
Multiprocessing, sub-interpreters and multi-threading without GIL are all different ways of facilitating multi-core parallelism in Python. Each of these approaches offers a unique pathway to parallel execution, but comes with its own set of trade-offs, complexities, and suitability for different types of problems. During this talk we will explore each of these options and asses their pros and cons.
Whether you're building CPU-bound high throughput applications, IO-bound services, or simply curious about the future of parallel processing in Python, this talk will help you with the knowledge to make informed decisions and leverage Python's parallel computing capabilities.
---
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: creativecommon...

Пікірлер
The truth about objects - Naomi Ceder
27:12
EuroPython Conference
Рет қаралды 173
Евгений Афонасьев. Разблокируй это! Что такое nogil?
42:03
Видео с мероприятий {speach!
Рет қаралды 3,2 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Parallel Python Apps with Sub Interpreters - Talk Python to Me Ep.447
1:14:22
A first look at a faster, no-GIL Python
6:56
InfoWorld
Рет қаралды 8 М.
What I Learned from Fixing GenAI Misuses in Business
24:49
Guilherme Diaz-Berrio
Рет қаралды 29
Aggregating data in Django using database views - Mikuláš Poul
29:46
EuroPython Conference
Рет қаралды 268
Invent with PyScript - Nicholas Tollervey, Joshua Lowe
29:07
EuroPython Conference
Рет қаралды 589
Python 3.13 release: bye GIL, hi JIT, new REPL!
8:45
Carberra
Рет қаралды 28 М.
SPy (Static Python) lang: fast as C, Pythonic as Python - Antonio Cuni
44:02
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 313 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН