Skip to content

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