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 <rep...@bugs.python.org> <http://bugs.python.org/issue28832> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com