Adarsh Divakaran

Adarsh Divakaran

Goodbye GIL: Exploring the Free-threaded mode in Python 3.13 and Beyond

ラン#pyconjp_4中級英語
11:50 - 12:2030min
DAY 2
09/27
SAT

Python 3.13 was the first Python version released with a free-threaded mode. Although the default interpreter still utilizes the GIL, it provides provisions that enable us to run a free-threaded version of the interpreter with the GIL disabled.

Through this talk, we’ll set up and run the free-threaded interpreter, benchmarking it against the GIL-enabled version for various tasks. We'll assess the impact on single-threaded vs multithreaded code and test the performance across CPU-bound and I/O-bound tasks, aiming to identify scenarios where free-threaded Python excels.


この題材を選んだ理由やきっかけ

The free-threaded interpreter is a significant step toward removing the GIL, yet it's still underexplored in the Python community. It introduces true multi-threading as an optional feature in 3.13, and understanding its impact early will help developers prepare for what’s to come next.


オーディエンスが持って帰れる具体的な知識やノウハウ

  • Setting up and using the free-thread Python interpreter
  • Choosing between GIL-enabled/disabled interpreters based on the task at hand

オーディエンスに求める前提知識

Experience using concurrency primitives in Python like multiprocessing and threading.

Adarsh Divakaran

Adarsh Divakaran

プロフィール

Adarsh is a Python geek and an experienced Backend Developer with expertise in building APIs using Python. He is currently working as a Software Engineering Specialist in the Human Data team at xAI

Adarsh began his Speaker journey by presenting at the GraphQL Summit ‘22 and has spoken at various international Python conferences, including PyCascades, EuroPython, PyCon US, Djangocon, and FlaskCon.

Explore his professional journey and insights on his personal website and blog.