3 ms·
One would have expected that the arithmetic assignments operators would have been faster as a += 1 would only compute the address of "a" only once and then dup
by oldandtired 9y ago
One would have expected that the arithmetic assignments operators would have been faster as
a += 1 would only compute the address of "a" only once and then duplicate it, whereas
a = a + 1 would compute the address of "a" twice. For more complicated examples the first should see an even faster speedup.
So, from my perspective, there is a serious problem here in the optimiser.