This is one of the classic posts here:<p><a href="https://hn.algolia.com/?query=Why%20is%20processing%20a%20sorted%20array%20faster%20than%20an%20unsorted%20array%3F&sort=byPopularity&prefix&page=0&dateRange=all&type=story" rel="nofollow">https://hn.algolia.com/?query=Why%20is%20processing%20a%20so...</a><p>Very good comments in some of the submissions
For completeness,
a) make the array very big (much much bigger than the LLC)
b) split the work amongst cores (make it parallel with your favorite methodology)