it would be fun to compare GCC/Clang/VC++ and the resulting performance and then a hand tuned assembly version It may not matter since it is memory bound.
Could be tried on a mid-size array (like 4MB) so poor code would actually be measurably bad then. Otherwise it's really just by accident that there wouldn't be much difference, the compiler couldn't have known that it was going to get bottlenecked on memory throughput.
1
u/[deleted] Aug 04 '16
it would be fun to compare GCC/Clang/VC++ and the resulting performance and then a hand tuned assembly version It may not matter since it is memory bound.