bpo-43693: Compute deref offsets in compiler#25152
Merged
ericsnowcurrently merged 12 commits intopython:mainfrom Jun 4, 2021
Merged
bpo-43693: Compute deref offsets in compiler#25152ericsnowcurrently merged 12 commits intopython:mainfrom
ericsnowcurrently merged 12 commits intopython:mainfrom
Conversation
3 tasks
gvanrossum
reviewed
Apr 5, 2021
Member
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Update also Doc/library/dis.rst.
Member
|
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
Member
Author
|
Eric is working on a PR to implement faster-cpython/ideas#41, so I'm closing this. |
This was referenced May 27, 2021
6174448 to
46d531e
Compare
Member
|
(What are you doing here?) |
Member
|
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. 🙂) |
pablogsal
added a commit
to pablogsal/cpython
that referenced
this pull request
Jun 4, 2021
This reverts commit b2bf2bc.
ericsnowcurrently
added a commit
to ericsnowcurrently/cpython
that referenced
this pull request
Jun 7, 2021
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)
ericsnowcurrently
added a commit
that referenced
this pull request
Jun 7, 2021
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges locals and cells into a single array.
Saves a pointer in the interpreter and means that we don't need the
LOAD_CLOSUREopcode any morehttps://bugs.python.org/issue43693