This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients rhettinger, serhiy.storchaka, skrah, socketpair
Date 2016-10-11.13:05:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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
History
Date User Action Args
2016-10-11 13:05:46serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, skrah, socketpair
2016-10-11 13:05:46serhiy.storchakasetmessageid: <[email protected]>
2016-10-11 13:05:46serhiy.storchakalinkissue28397 messages
2016-10-11 13:05:46serhiy.storchakacreate