bpo-34100: Merge constants recursively by methane · Pull Request #8341 · python/cpython
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't really review the code -- sorry about the drive-by!
methane
changed the title
bpo-34100: compile: Merge constants
bpo-34100: Merge constants recursively
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the overall idea. But I don't have the bandwidth to review reference counting and other subtle details.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@methane: Status check is done, and it's a success ✅ .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters