[issue29304] dict: simplify lookup functions
INADA Naoki
report at bugs.python.org
Mon Jun 19 00:48:49 EDT 2017
INADA Naoki added the comment:
pr-2237 only changes lookdict_index() function.
The function is used from only dict_popitem(). So it's not performance critical part.
And microbench doesn't show significant performance changes:
$ ./python.default -m perf timeit -q -l 2000 -s 'd=dict.fromkeys(str(i) for i in range(2000))' -- 'd.popitem()'
Mean +- std dev: 96.1 ns +- 1.3 ns
$ ./python.patched -m perf timeit -q -l 2000 -s 'd=dict.fromkeys(str(i) for i in range(2000))' -- 'd.popitem()'
Mean +- std dev: 96.4 ns +- 1.3 ns
----------
title: dict: simplify lookup function -> dict: simplify lookup functions
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29304>
_______________________________________
More information about the Python-bugs-list
mailing list