Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typecode cache for stable typecodes #5971

Closed
wants to merge 11 commits into from

Conversation

luk-f-a
Copy link
Contributor

@luk-f-a luk-f-a commented Jul 9, 2020

Currently typecodes are generated for each new type instance. While there's a cache for type instances, it holds weak references, which means that if the same type is destroyed and created again there will be a new instance object and therefore a new typecode.
Function subtyping (#5579) requires stable type codes for dispatchers and tuples of dispatchers.

This draft PR shows a possible implementation of a typecode cache to solve the problem above.

cc @sklam

@stuartarchibald stuartarchibald added this to the PR Backlog milestone Jul 10, 2020
@sklam sklam self-requested a review July 13, 2020 14:44
@github-actions
Copy link

github-actions bot commented Apr 2, 2023

This pull request is marked as stale as it has had no activity in the past 3 months. Please respond to this comment if you're still interested in working on this. Many thanks!

@github-actions github-actions bot added the stale Marker label for stale issues. label Apr 2, 2023
@github-actions github-actions bot added the abandoned - stale PRs automatically closed due to stale status label Apr 10, 2023
@github-actions github-actions bot closed this Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In Progress abandoned - stale PRs automatically closed due to stale status stale Marker label for stale issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants