{{ message }}
bpo-30416: Protect the optimizer during constant folding.#4860
Merged
serhiy-storchaka merged 5 commits intoDec 15, 2017
Merged
bpo-30416: Protect the optimizer during constant folding.#4860serhiy-storchaka merged 5 commits into
serhiy-storchaka merged 5 commits into
Conversation
It no longer spends much time doing complex calculations and no longer consumes much memory for creating large constants that will be dropped later. This fixes also bpo-21074.
methane
approved these changes
Dec 14, 2017
methane
left a comment
Member
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
vstinner
reviewed
Dec 14, 2017
vstinner
left a comment
Member
There was a problem hiding this comment.
Thank you @serhiy-storchaka for working on this! A few comments.
Sorry, something went wrong.
Member
|
Ok for 1024 items, but why limiting a single tuple to 256? Maybe 1024 should be used for all limits? |
Sorry, something went wrong.
Member
Author
|
Oh, it already is increased from 20 to 256. I think this is enough. |
Sorry, something went wrong.
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
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.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.
It no longer spends much time doing complex calculations and no longer consumes much memory for creating large constants that will be dropped later.
This fixes also bpo-21074.
https://bugs.python.org/issue30416