Optimise the check for large substrings.

Change-Id: Ia59b080b5f96e8b31dab221c483f7ed54843a319
Reviewed-on: https://code-review.googlesource.com/c/35272
Reviewed-by: Paul Wankadia <junyer@google.com>
1 file changed