Skip to content

gh-118527: Intern filename, name, and qualname in code objects.#118558

Merged
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-118527-code-names
May 3, 2024
Merged

gh-118527: Intern filename, name, and qualname in code objects.#118558
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-118527-code-names

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented May 3, 2024

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 functions take the name and qualified name from the code object.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants