]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.6] bpo-30416: Protect the optimizer during constant folding. (#4865)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 15 Dec 2017 12:12:14 +0000 (14:12 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2017 12:12:14 +0000 (14:12 +0200)
commitb580f4f2bf49fd3b11f2a046911993560c02492a
tree8c0230cbd8e2cdbfaf003d48e14d664fd229de82
parentb82da9ebb20053637e731fd40589e1e52f9f8f6e
[3.6] bpo-30416: Protect the optimizer during constant folding. (#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.
Lib/test/test_memoryio.py
Lib/test/test_peepholer.py
Misc/NEWS.d/next/Core and Builtins/2017-12-14-11-48-19.bpo-30416.hlHo_9.rst [new file with mode: 0644]
Python/peephole.c