Comment on Why is processing a sorted array faster than an unsorted array?parentComments−plorkyeran13yIn an optimized build data[c] is read from memory only once per loop iteration, so the memory read patterns are identical in the sorted and unsorted cases.
Comments
In an optimized build data[c] is read from memory only once per loop iteration, so the memory read patterns are identical in the sorted and unsorted cases.