~/talk

High-Performance Python: Faster Type Checking and Free Threaded Execution

Talkat PyCon US 2025 · 2025-05-16..05-18· [python, developer-experience]
name:Sam Gross
links:none on file
links:none on file
slides:none on file

Free-threaded Python ships as an optional build since 3.13 and shows real results: 3.14 restores single-thread speed to within ~8% of GIL builds while enabling parallel threads. The port uses biased reference counting plus deferred reference counting, per-instance locks and a Python critical sections API to keep single-thread performance high and avoid deadlocks. Pyrefly is a Rust-based, module-parallel type checker that hits ~1.8M lines/sec and reports being ~35× faster than Pyre1 and ~14× faster than Pyright/MyPy.

AI-written summary · about

  1. 0:00Free threaded Python intro
  2. 2:06Free threading multi-core gains
  3. 3:52Free threading history and future
  4. 8:46Reference counting challenges
  5. 10:09Thread-safe collections with locks
  6. 11:54Python 3.13/3.14 free threading
  7. 14:43Future plans for Python 3.15 and beyond
  8. 15:48How to use free threaded Python today
  9. 16:53Q&A on free threading
  10. 23:18PyreFly type checker intro
  11. 26:26Installing PyreFly
  12. 27:30Pyre to PyreFly at Meta
  13. 31:40PyreFly's four features
  14. 34:51Type inference and IDE support
  15. 37:21Why PyreFly is open source
  16. 39:05Type checking benefits
  17. 42:32PyreFly design and phases
  18. 48:52PyreFly team and resources
  19. 51:00Q&A on type checking
  20. 54:06Type checker comparisons
  21. 1:00:03Python type checking future
  22. 1:01:04Convincing Meta to open source
  23. 1:02:29Q&A on errors and runtime types
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.