[issue29304] dict: simplify lookup functions

Antoine Pitrou report at bugs.python.org
Fri Jun 23 07:32:22 EDT 2017


Antoine Pitrou added the comment:

>From a purely human and social perspective, I agree that it's beneficial to minimize duplicated code.

>From a performance perspective, I can see two possible consequences:
- either compilers are already smart enough to undo the code duplication, and generated code will remain the same => no performance difference
- or compilers are not able to undo the code duplication, and the reduced I-cache pressure may be beneficial on non-trivial workloads => potential improvement (though probably minor) with the reduced code size

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list