Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
bpo-46841: Quicken code in-place#31888
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
37 commits Select commitHold shift + click to select a range
6ca0d42 Move bytecode into the code object
brandtbuchera77a124 Clean things up a bit
brandtbucher975b8d1 Bump the magic number
brandtbucher40ddf39 co_bytecode -> _co_code
brandtbucherbfcba6d Generate specialization table
brandtbucher0376822 Clean things up a bit
brandtbucher3e77b8d Pack code objects more efficiently
brandtbucher0a598a7 Fix typo
brandtbucher2fda3b8 More cleanup
brandtbucher42810dd Try a different approach
brandtbucher7df4934 Clean up the diff
brandtbucher5fa0ca2 Support equality comparisons again
brandtbucher1fc2282 Never un-quicken!
brandtbucherb40e300 More renaming and cleanup
brandtbucheraf27670 Revert marshal format changes
brandtbucher629bf8b More cleanup
brandtbucher59cda59 Clean up the diff
brandtbucher73c33c1 Catch up with main
brandtbucherecfb193 Miscellaneous cleanup
brandtbucher824b2da Remove outdated comment
brandtbucher8164f41 Properly skip over EXTENDED_ARG instructions
brandtbucher932a3f2 Make sure that f_lasti is always valid
brandtbucherc0c5498 Add some comments
brandtbucherf62a395 Catch up with main
brandtbuchere7464a3 Check opargs during size calculations
brandtbucher4f51fdd Add another TODO
brandtbucher75bd375 Clean up formatting
brandtbucherd6d5128 Fix compiler warning
brandtbucher82145c1 Simplify calculation of instr_prev
brandtbucherca176ac _Py_Quicken -> _PyCode_Quicken
brandtbucher1e06bb5 Revert expensive f_lasti changes
brandtbuchere70819f Naming is hard
brandtbucher001eb53 Catch up with main
brandtbucher6b96204 make patchcheck
brandtbucher3087025 blurb add
brandtbucher6f3bc38 Reuse the PyCodeObject definition for deepfreeze
brandtbucherc8054b9 Clean up TODO
brandtbucherFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Catch up with main
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit73c33c1cf6eb0db7fece3f41d505511c8d3f7bb6
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1343,6 +1343,7 @@ code_dealloc(PyCodeObject *co) | ||
| Py_XDECREF(co->co_exceptiontable); | ||
| if (co->co_weakreflist != NULL) { | ||
| PyObject_ClearWeakRefs((PyObject*)co); | ||
| } | ||
| if (co->co_warmup == 0) { | ||
| _Py_QuickenedCount--; | ||
markshannon marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| } | ||
2 changes: 0 additions & 2 deletionsPython/specialize.c
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
You are viewing a condensed version of this merge commit. You can view thefull changes here.
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.