]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30416: Protect the optimizer during constant folding. (#4860)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 15 Dec 2017 12:11:43 +0000 (14:11 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2017 12:11:43 +0000 (14:11 +0200)
commit2e3f5701858d1fc04caedefdd9a8ea43810270d2
treee1c92b967a8f0935f65139338f4b7c170609c46e
parenta5552f023e1d8cbafee1e51d316cc581deb2295f
bpo-30416: Protect the optimizer during constant folding. (#4860)

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/ast_opt.c