[issue28832] Reduce memset in dict creation
INADA Naoki
report at bugs.python.org
Tue Nov 29 07:56:55 EST 2016
New submission from INADA Naoki:
This patch delays initialization of dk_entries.
Entries are initialized when first use (when dk_netries is incremented).
Minimum dk_entries of 64bit arch is 5 * 8 * 3 = 120bytes.
So it can save 4 cache lines!
I'm running benchmark for now.
----------
assignee: inada.naoki
components: Interpreter Core
files: reduce-memset.patch
keywords: patch
messages: 281989
nosy: inada.naoki
priority: normal
severity: normal
stage: patch review
status: open
title: Reduce memset in dict creation
type: performance
versions: Python 3.7
Added file: http://bugs.python.org/file45687/reduce-memset.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28832>
_______________________________________
More information about the Python-bugs-list
mailing list