SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

gh-146041: Avoid lock in sys.intern() for already interned strings (gh-146072)

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.
S
Sam Gross committed
60093096ba62110151d822b072a01061876e9404
Parent: 535b09c
Committed by GitHub <noreply@github.com> on 3/24/2026, 6:29:37 PM