This incorporates a suggestion from @tfmorris on Github issue #14 : We don't need to continue matching the rest of the rows if a perfect match has been hit.
In the best case this speeds up matching a bit. In worst case: It's a little bit slower due to the additional checks happening. The speedup is quite significant if the matched up line is at the beginning of the file. Slow down is acceptable.
This incorporates a suggestion from @tfmorris on Github issue #14 : We don't need to continue matching the rest of the rows if a perfect match has been hit.
In the best case this speeds up matching a bit. In worst case: It's a little bit slower due to the additional checks happening. The speedup is quite significant if the matched up line is at the beginning of the file. Slow down is acceptable.