optimisation: stop detecting early when binariness discovered

This commit is contained in:
Alexey Kudravtsev
2017-08-21 13:42:10 +03:00
parent 6db8f1f6fc
commit 1d2ac5662d
@@ -430,6 +430,7 @@ public class CharsetToolkit {
}
else if (b0 < BINARY_THRESHOLD) {
hasBinary = true;
break;
}
if (!validU8Char) break;
i++;