New submission from INADA Naoki:

_PyDict_NewPresized(6) creates dict which keysize is 8.
But it's capacity is 5 (8 * 2 // 3 = 5).

This internal API is used by BUILD_MAP and BUILD_CONST_KEYMAP.

----------
assignee: inada.naoki
files: PyDict_NewPresized-too-small.patch
keywords: patch
messages: 281092
nosy: haypo, inada.naoki
priority: high
severity: normal
stage: patch review
status: open
title: _PyDict_NewPresized() creates too small dict
type: performance
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45531/PyDict_NewPresized-too-small.patch

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

Reply via email to