Comment on Why is processing a sorted array faster than an unsorted array?parentComments−mtdewcmu13y> The branch in this example is essentially random and so pretty much impossible to predict. I would classify it as a pathological case.It's a highly contrived example, and it's a little bit misleading.
Comments
It's a highly contrived example, and it's a little bit misleading.