]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140476: optimize `PySet_Add` for `frozenset` in free-threading (#140440)
authorAlper <alperyoney@fb.com>
Tue, 11 Nov 2025 20:27:21 +0000 (12:27 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Nov 2025 20:27:21 +0000 (01:57 +0530)
commit298e9074cdffb09d518e6aceea556e8f4a8a745d
treeb41f32e01468a66c9c0439bb5edf28a26b6c96b2
parentb5196fa15a6c5aaa90eafff06206f8e44a9da216
gh-140476: optimize `PySet_Add` for `frozenset` in free-threading (#140440)

Avoids critical section in `PySet_Add` when adding items to newly created frozensets.

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Misc/NEWS.d/next/Core_and_Builtins/2025-10-22-12-48-05.gh-issue-140476.F3-d1P.rst [new file with mode: 0644]
Objects/setobject.c