When indexed, only check matches that can beat the current best match.
This eliminates more unnecessary compares, speeding things up further. (Thanks to user jibsen on hacker news for the original suggestion.)
Loading
Please register or sign in to comment