[issue27956] optimize dict_traverse a bit

2016-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 027e421594b7 by Benjamin Peterson in branch 'default': remove memory indirections in dict_traverse (closes #27956) https://hg.python.org/cpython/rev/027e421594b7 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open ->

[issue27956] optimize dict_traverse a bit

2016-09-05 Thread INADA Naoki
INADA Naoki added the comment: lgtm. But http://bugs.python.org/issue27350 conflicts this. -- nosy: +methane ___ Python tracker ___ __

[issue27956] optimize dict_traverse a bit

2016-09-05 Thread Benjamin Peterson
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