]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34100: Merge constants recursively (GH-8341)
authorINADA Naoki <methane@users.noreply.github.com>
Mon, 26 Nov 2018 12:23:22 +0000 (21:23 +0900)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Nov 2018 12:23:22 +0000 (04:23 -0800)
commitc2e1607a51d7a17f143b5a34e8cff7c6fc58a091
tree06d03e18dd18bd8d37355d2b7b573b17da556c14
parentf0b366a8d7e0f12d4448f570e990de414f4afca7
bpo-34100: Merge constants recursively (GH-8341)

There are some same consts in a module.  This commit merges them into
single instance.  It reduces number of objects in memory after loading modules.

https://bugs.python.org/issue34100
Lib/test/test_compile.py
Misc/NEWS.d/next/Core and Builtins/2018-07-27-20-04-52.bpo-34100.ypJQX1.rst [new file with mode: 0644]
Python/compile.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h