]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118527: Intern filename, name, and qualname in code objects. (#118558)
authorSam Gross <colesbury@gmail.com>
Fri, 3 May 2024 22:16:45 +0000 (18:16 -0400)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 22:16:45 +0000 (18:16 -0400)
commit37c31bea72fb6971f1008faa2e253d12167c221f
tree7f45a8a0bc9f7bd77b1fa8423523e9f4f24e6cde
parent0e78a545e6e78b16eb7709ec3db2243364603134
gh-118527: Intern filename, name, and qualname in code objects. (#118558)

This interns the strings for `co_filename`, `co_name`, and `co_qualname`
on codeobjects in the free-threaded build. This partially addresses a
reference counting bottleneck when creating closures concurrently. The
closures take the name and qualified name from the code object.
Objects/codeobject.c