Skip to content

Commit

Permalink
demo change
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-a committed Apr 2, 2024
1 parent 4e6f9b4 commit dd1ea68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/perf/ManualCharAccessTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class ManualCharAccessTest
{
protected int hash;

protected final static byte[] SMALL_BYTE_CODES = new byte[256];
protected final static byte[] SHALL_BYTE_CODES = new byte[256];

protected final static int[] SMALL_INT_CODES = new int[256];

Expand All @@ -16,13 +16,13 @@ public class ManualCharAccessTest
if (!(i == '\r' || i == '\n' || i == '\t')) {
INT_CODES[i] = 1;
BYTE_CODES[i] = 1;
SMALL_BYTE_CODES[i] = 1;
SHALL_BYTE_CODES[i] = 1;
SMALL_INT_CODES[i] = 1;
}
}
INT_CODES['\\'] = 2;
BYTE_CODES['\\'] = 2;
SMALL_BYTE_CODES['\\'] = 2;
SHALL_BYTE_CODES['\\'] = 2;
SMALL_INT_CODES['\\'] = 2;
}

Expand Down Expand Up @@ -112,7 +112,7 @@ private void test() throws Exception
private final long readClassic(int REPS, char[] input, char[] output) throws Exception
{
long start = System.currentTimeMillis();
final byte[] codes = SMALL_BYTE_CODES;
final byte[] codes = SHALL_BYTE_CODES;
final int MAX = 256;

while (--REPS >= 0) {
Expand Down

0 comments on commit dd1ea68

Please sign in to comment.