-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-43693: Compute deref offsets in compiler #25152
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
bpo-43693: Compute deref offsets in compiler #25152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update also Doc/library/dis.rst
.
Please don't forget to bump a bytecode magic number and add a line to the bytecode history list. |
6e4b212
to
8045347
Compare
16546b6
to
6174448
Compare
Eric is working on a PR to implement faster-cpython/ideas#41, so I'm closing this. |
6174448
to
46d531e
Compare
(What are you doing here?) |
This change was always going to be included. I figured it would still be cleaner if it were its own PR. It also makes the subsequent PR a little smaller. (Plus it was already reviewed, between Mark and me, so I'll merge it today. 🙂) |
This reverts commit b2bf2bc.
These were reverted in pythonGH-26530 (commit 17c4edc). * Compute deref offsets in compiler (pythongh-25152) * Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (pythongh-26388)
These were reverted in gh-26530 (commit 17c4edc) due to refleaks. * 2c1e258 - Compute deref offsets in compiler (gh-25152) * b2bf2bc - Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388) This change fixes the refleaks. https://bugs.python.org/issue43693
Merges locals and cells into a single array.
Saves a pointer in the interpreter and means that we don't need the
LOAD_CLOSURE
opcode any morehttps://bugs.python.org/issue43693