3 ms·
What I find weird is that there is a difference in performance. If the compiler is smart enough to inline, it should be able to notice that the way arguments a
by GuB-42 7y ago
What I find weird is that there is a difference in performance.
If the compiler is smart enough to inline, it should be able to notice that the way arguments are passed make no difference and use the most efficient way regardless of the signature. Do I overestimate the abilities of compilers, or maybe there is some side effect I am not aware of (concurrency?).
Obviously, it only applies when inlining.