Message278481
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 |
|
| Date |
User |
Action |
Args |
| 2016-10-11 13:05:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, skrah, socketpair |
| 2016-10-11 13:05:46 | serhiy.storchaka | set | messageid: <[email protected]> |
| 2016-10-11 13:05:46 | serhiy.storchaka | link | issue28397 messages |
| 2016-10-11 13:05:46 | serhiy.storchaka | create | |
|