Don’t make it appear like you are reading your own recent writes

Richard Statin recently published a Java benchmark where the performance of a loop varies drastically depending on the size of the arrays involved. The loop is simple: for (int i = 0; i < a.length; ++i) { a[i] += s * b[i]; } If the array size is 1000, the performance is lower than if … Continue reading Don’t make it appear like you are reading your own recent writes