◐ Shell
clean mode source ↗

[2.7] bpo-30416: Protect the optimizer during constant folding. (GH-4865) by serhiy-storchaka · Pull Request #4896 · python/cpython

…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)

@serhiy-storchaka added the type-bug

An unexpected behavior, bug, or error

label

Dec 15, 2017

@serhiy-storchaka serhiy-storchaka changed the title [2.7] [3.6] bpo-30416: Protect the optimizer during constant folding. (GH-4865) [2.7] bpo-30416: Protect the optimizer during constant folding. (GH-4865)

Dec 18, 2017