[New-bugs-announce] [issue28731] _PyDict_NewPresized() creates too small dict
INADA Naoki
report at bugs.python.org
Fri Nov 18 06:03:05 EST 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue28731>
_______________________________________
More information about the New-bugs-announce
mailing list