NumPy already releases the GIL. So threads should already pay off for your NumPy code, right? Christopher Ariza tested that. He summed the rows of a 10,000 by 10,000 array on Python 3.14. Sequential took 360 milliseconds. A thread pool took 373, slower than doing nothing. The same code on free-threaded Python 3.14t took 83.7 milliseconds. Free-threaded Python is officially supported as of 3.14. The GIL isn’t gone, though. It’s a zombie. Import one compiled package that hasn’t opted in, psycopg2 for example, and the GIL comes back for your entire process. You get a warning, not an error.
Chris is the creator of StaticFrame and its C extension library ArrayKit. We dig into when threads beat plain NumPy, how to tell if you’re actually running free-threaded, and conditional-futures, his drop-in thread pool that stops your code from getting slower when the GIL wakes back up.
Episode sponsors
Talk Python Membership
Talk Python Membership
Talk Python Courses
Links from the show
Guest
Christopher Ariza: github.com
GIL Guard project: mkennedy.codes
chameleon-rs: mkennedy.codes
diskcache-oxide: mkennedy.codes
Black Friday at Talk Python: talkpython.fm/black-friday
episode 204: talkpython.fm
Fetter: fetter.io
PyBay 2026: pybay.org
StaticFrame: github.com
Free-threaded row-wise apply: static-frame.readthedocs.io
Getting Started with Free-Threaded Python Using NumPy: github.com
Free-threaded Python: docs.python.org
abi3t: peps.python.org
TonIO: talkpython.fm
did a whole course: training.talkpython.fm
psycopg2: pypi.org
ArrayKit: github.com
217 of the top 360: hugovk.dev
Quansights free-threading guide: py-free-threading.github.io
conditional-futures: github.com
rayon: github.com
Watch this episode on YouTube: youtube.com
Episode #570 deep-dive: talkpython.fm/570
Episode transcripts: talkpython.fm
Theme Song: Developer Rap
🥁 Served in a Flask 🎸: talkpython.fm/flasksong
---== Don't be a stranger ==---
YouTube: youtube.com/@talkpython
Bluesky: @talkpython.fm
Mastodon: @talkpython@fosstodon.org
X.com: @talkpython
Michael on Bluesky: @mkennedy.codes
Michael on Mastodon: @mkennedy@fosstodon.org
Michael on X.com: @mkennedy
Information
- Show
- FrequencyUpdated weekly
- Published26 November 2026 at 00:17 UTC
- Length1hr 2min
- Episode570
- RatingClean
