]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-145685: Improve scaling of type attribute lookups (gh-145774) (#145874)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Mar 2026 18:33:05 +0000 (19:33 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2026 18:33:05 +0000 (14:33 -0400)
commitcedff2d617c79e2122162049bb75e1d690d9f5eb
tree50da9c3c9dec19987dc51e7ca3fcac9f78f0f315
parent6669b20514e313364f600ce6e3e9b4ab883f4a94
[3.14] gh-145685: Improve scaling of type attribute lookups (gh-145774) (#145874)

Avoid locking in the PyType_Lookup cache-miss path if the type's
tp_version_tag is already valid.

(cherry picked from commit cd5217283112d41c0244e2d96302cbe33f0b4cb1)

Co-authored-by: Sam Gross <colesbury@gmail.com>
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