Skip to content

[3.6] bpo-30416: Protect the optimizer during constant folding. #4865

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

Merged
merged 2 commits into from
Dec 15, 2017

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Dec 14, 2017

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

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.
@serhiy-storchaka serhiy-storchaka added needs backport to 2.7 type-bug An unexpected behavior, bug, or error labels Dec 14, 2017
@serhiy-storchaka serhiy-storchaka changed the title bpo-30416: Protect the optimizer during constant folding. [3.6] bpo-30416: Protect the optimizer during constant folding. Dec 14, 2017
@serhiy-storchaka serhiy-storchaka merged commit b580f4f into python:3.6 Dec 15, 2017
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the safe-const-folding-3.6 branch December 15, 2017 12:12
@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b580f4f2bf49fd3b11f2a046911993560c02492a 2.7

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Dec 15, 2017
…pythonGH-4865)

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..
(cherry picked from commit b580f4f)
@bedevere-bot
Copy link

GH-4896 is a backport of this pull request to the 2.7 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants