[issue28397] Faster index range checks
Serhiy Storchaka
report at bugs.python.org
Tue Oct 11 09:05:46 EDT 2016
Serhiy Storchaka added the comment:
In your example functions are inlined. If prohibit inlining, the second function is faster.
$ gcc -O3 -o issue28397 issue28397-2.c
$ time ./issue28397 0
real 0m8.097s
user 0m7.992s
sys 0m0.012s
$ time ./issue28397 1
real 0m5.467s
user 0m5.436s
sys 0m0.024s
----------
Added file: http://bugs.python.org/file45055/issue28397-2.c
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28397>
_______________________________________
More information about the Python-bugs-list
mailing list