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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28397>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to