YoVDO

The Gilectomy

Offered By: EuroPython Conference via YouTube

Tags

EuroPython Courses Benchmarking Courses CPython Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the challenges and implications of removing Python's Global Interpreter Lock (GIL) in this 46-minute EuroPython 2016 conference talk. Delve into the history of the GIL, its impact on CPython's performance, and the experimental "gilectomy" branch that successfully removes it. Learn about the technical and political considerations involved in GIL removal, including tracing garbage collection, software transactional memory, and the handling of globals and statics. Examine benchmark results comparing GIL and GIL-less implementations, and gain insights into the performance trade-offs and potential optimizations. Discover the complexities of multi-core Python execution and the ongoing efforts to balance speed with parallel processing capabilities in CPython.

Syllabus

Intro
preface
revisiting the gil
gil ramifications
the world has changed
python hasn't
your computer's resources
the "free-threading" patch
four technical considerations
three political considerations
tracing garbage collection
software transactional memory
globals and statics
cext parallelism & reentrancy
atomicity
lock api
what needs locks?
userspace locks
two builds
two entry points
don't make it too complicated
it isn't easy to remove the gil
how to remove the gil
language summit benchmarks
gilectomy's official benchmark
what fib exercises
gil vs gilectomy, wall time
gil vs gilectomy, cpu time
what makes cpus fast?
cache never stays warm
buffered reference counting
remote object headers
final thoughts


Taught by

EuroPython Conference

Related Courses

A Brief History of Data Storage
EuroPython Conference via YouTube
Breaking the Stereotype - Evolution & Persistence of Gender Bias in Tech
EuroPython Conference via YouTube
We Can Get More from Spatial, GIS, and Public Domain Datasets
EuroPython Conference via YouTube
Using NLP to Detect Knots in Protein Structures
EuroPython Conference via YouTube
The Challenges of Doing Infra-As-Code Without "The Cloud"
EuroPython Conference via YouTube