[issue21955] ceval.c: implement fast path for integers with a single digit
STINNER Victor
report at bugs.python.org
Thu Feb 4 03:01:51 EST 2016
STINNER Victor added the comment:
"In a numerics heavy application it's like that all fast paths will trigger somewhere, but those will likely be better off using numpy or numba. For a text heavy application such as a web server, only few fast paths will trigger and so the various checks only add overhead."
Hum, I disagree. See benchmark results in other messages. Examples:
### django_v2 ###
Min: 2.682884 -> 2.633110: 1.02x faster
### unpickle_list ###
Min: 1.333952 -> 1.212805: 1.10x faster
These benchmarks are not written for numeric, but are more "general" benchmarks. int is just a core feature of Python, simply used everywhere, as the str type.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21955>
_______________________________________
More information about the Python-bugs-list
mailing list