SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 2 Python

[3.14] gh-146041: Avoid lock in sys.intern() for already interned strings (gh-146072) (#146390)

Fix free-threading scaling bottleneck in sys.intern and `PyObject_SetAttr` by
avoiding the interpreter-wide lock when the string is already interned and
immortalized.

(cherry picked from commit 60093096ba62110151d822b072a01061876e9404)
S
Sam Gross committed
f2b5131d1a4dca1a2046e9e28dabca19858fa57f
Parent: 58c5eda
Committed by GitHub <noreply@github.com> on 3/25/2026, 1:42:19 AM