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-30040: New empty dict uses key-sharing dict. #1080

Merged
merged 6 commits into from
Mar 12, 2019

Conversation

methane
Copy link
Member

@methane methane commented Apr 11, 2017

Like dict.clear().
Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64).

https://bugs.python.org/issue30040

@mention-bot
Copy link

@methane, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @serhiy-storchaka and @rhettinger to be potential reviewers.

@zhangyangyu zhangyangyu added the type-feature A feature request or enhancement label Apr 11, 2017
@zhangyangyu zhangyangyu self-requested a review April 11, 2017 15:48
@markshannon
Copy link
Member

You'll need to apply the change in 2757082 to line 5274 and 5276 as well.

methane and others added 4 commits March 8, 2019 17:43
Like dict.clear().
Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64).
As suggested by Mark Shannon in the GitHub review.
@methane methane force-pushed the compact-empty-dict branch from 4144fc9 to b8cbfc7 Compare March 8, 2019 08:43
@methane methane merged commit f2a1867 into python:master Mar 12, 2019
@methane methane deleted the compact-empty-dict branch March 12, 2019 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants