[New-bugs-announce] [issue27956] optimize dict_traverse a bit

Benjamin Peterson report at bugs.python.org
Mon Sep 5 15:02:13 EDT 2016


New submission from Benjamin Peterson:

dict_traverse shows up a lot on statistical profiles of Python programs. This is not surprising since Python programs have lots of dicts. There isn't a huge amount of room for optimization here, but we can avoid some memory indirection. This patch saves a few percent of time through this function in my measurements.

----------
components: Interpreter Core
files: traverse.patch
keywords: patch
messages: 274420
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: optimize dict_traverse a bit
type: performance
versions: Python 3.6
Added file: http://bugs.python.org/file44375/traverse.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27956>
_______________________________________


More information about the New-bugs-announce mailing list