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

gh-94673: Add Per-Interpreter tp_weaklist for Static Builtin Types #95302

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Jul 26, 2022

@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jul 27, 2022

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit f7d27fe 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots label Jul 27, 2022
Doc/whatsnew/3.12.rst Outdated Show resolved Hide resolved
@ericsnowcurrently ericsnowcurrently merged commit 3e7cad3 into python:main Jul 29, 2022
14 checks passed
@ericsnowcurrently ericsnowcurrently deleted the shareable-static-types-tp_weaklist branch Jul 29, 2022
@markshannon
Copy link
Member

@markshannon markshannon commented Jul 29, 2022

@ericsnowcurrently
Have you benchmarked this?

I expect that it won't make any difference, but I'm a bit concerned as _PyObject_GET_WEAKREFS_LISTPTR is on the "fast" path of normal object de-allocation. I put "fast" in quotes because it is far from fast, but I don't want to make it any slower.

It seems to me, that the extra check is not needed during de-allocation.

@ericsnowcurrently
Copy link
Member Author

@ericsnowcurrently ericsnowcurrently commented Jul 29, 2022

Good point. I'll take a look Monday.

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.

None yet

4 participants