Skip to content
Permalink
Browse files
CSV-279: Optimize Lexer Delimiter Check for One Character Delimiter (#…
  • Loading branch information
belugabehr committed Jul 14, 2021
1 parent cdbc892 commit f7c067d9b27f76849838d26f7c5b5dff7901f271
Showing 1 changed file with 3 additions and 0 deletions.
@@ -123,6 +123,9 @@ boolean isDelimiter(final int ch) throws IOException {
if (ch != delimiter[0]) {
return false;
}
if (delimiter.length == 1) {
return true;
}
final int len = delimiter.length - 1;
final char[] buf = reader.lookAhead(len);
for (int i = 0; i < len; i++) {

0 comments on commit f7c067d

Please sign in to comment.