Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-34100: Merge constants recursively #8341

Merged
merged 8 commits into from
Nov 26, 2018

Conversation

methane
Copy link
Member

@methane methane commented Jul 19, 2018

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

Copy link
Contributor

@asottile asottile left a comment

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 methane closed this Sep 13, 2018
@methane methane reopened this Sep 13, 2018
@methane methane changed the title bpo-34100: compile: Merge constants bpo-34100: Merge constants recursively Sep 13, 2018
Copy link
Member

@vstinner vstinner left a comment

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.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@methane methane closed this Nov 26, 2018
@methane methane reopened this Nov 26, 2018
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@methane
Copy link
Member Author

methane commented Nov 26, 2018

Thank you for review.

... Travis seems very unresponsible...

@miss-islington
Copy link
Contributor

@methane: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit c2e1607 into python:master Nov 26, 2018
@methane methane deleted the merge-consts branch November 29, 2018 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants