-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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-104787: use managed dict in _asyncio
#104795
Conversation
🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit d1cee85 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
is this a runtime optimization? memory optimization? what's the impact? |
From reading the 3.12 docs this seems to be primarily meant as a "better" way to support @kumaraditya303 Shouldn't we do this for weakrefs too? There's a corresponding |
See #95707, it does save memory as the dict isn't really allocated, the values pointer is used directly so it saves memory.
Haven't thought about using that yet, will check it in another PR for now. |
I see. I've forgotten how this works, I've added a ping asking for more documentation. |
Ok, I'll merge this now. |
|
asyncio.Task
and others #104787