Inada Naoki <songofaca...@gmail.com> added the comment:

On Wed, Mar 13, 2019 at 4:46 AM Raymond Hettinger
<rep...@bugs.python.org> wrote:
>
> Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
>
> I hate to see you working so hard to make this work.  IMO, the effort is 
> futile.  Dicts were intentionally designed to do a single memory allocation 
> and memset(0) to be fully ready to store data.  This PR is undoing that 
> decision and will make Python worse rather than better.

Please that this PR is not do it.  From Python 3.6, dict uses two
allocations.  No embedded small table.
This PR just move 2nd allocation from dict creation to first insertion.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30040>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to