]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145685: Improve scaling of type attribute lookups (gh-145774)
authorSam Gross <colesbury@gmail.com>
Thu, 12 Mar 2026 17:30:36 +0000 (13:30 -0400)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2026 17:30:36 +0000 (13:30 -0400)
commitcd5217283112d41c0244e2d96302cbe33f0b4cb1
treea03501c47d6bf4dc3155e0d77bb94453e8a793a2
parent7a65900764e27c5f9b4d69e0a117777a757f2d22
gh-145685: Improve scaling of type attribute lookups (gh-145774)

Avoid locking in the PyType_Lookup cache-miss path if the type's
tp_version_tag is already valid.
Include/internal/pycore_pyatomic_ft_wrappers.h
Misc/NEWS.d/next/Core_and_Builtins/2026-03-10-12-52-06.gh-issue-145685.80B7gK.rst [new file with mode: 0644]
Objects/typeobject.c