logoalt Hacker News

ChadNauseamtoday at 5:23 AM0 repliesview on HN

If you control the layout, eytzinger layout typically will give you the best of both worlds. As fast as a linear scan for small N, much faster than binary search over a sorted array for large N.