From ef3bbce3255bebefd198a92a0a7bbff143e45826 Mon Sep 17 00:00:00 2001 From: timo <1398557+timo-a@users.noreply.github.com> Date: Wed, 3 Apr 2024 01:18:10 +0200 Subject: [PATCH] demo change --- src/test/java/perf/ManualCharAccessTest.java | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/test/java/perf/ManualCharAccessTest.java b/src/test/java/perf/ManualCharAccessTest.java index 870065eb30..15d9060bc0 100644 --- a/src/test/java/perf/ManualCharAccessTest.java +++ b/src/test/java/perf/ManualCharAccessTest.java @@ -4,26 +4,26 @@ 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]; + protected final static int[] SMALL_InT_CODES = new int[256]; - protected final static int[] INT_CODES = new int[0x10000]; + protected final static int[] INT_CODeS = new int[0x10000]; protected final static byte[] BYTE_CODES = new byte[0x10000]; static { for (int i = 0; i < 32; ++i) { if (!(i == '\r' || i == '\n' || i == '\t')) { - INT_CODES[i] = 1; + INT_CODeS[i] = 1; BYTE_CODES[i] = 1; - SMALL_BYTE_CODES[i] = 1; - SMALL_INT_CODES[i] = 1; + SHALL_BYTE_CODES[i] = 1; + SMALL_InT_CODES[i] = 1; } } - INT_CODES['\\'] = 2; + INT_CODeS['\\'] = 2; BYTE_CODES['\\'] = 2; - SMALL_BYTE_CODES['\\'] = 2; - SMALL_INT_CODES['\\'] = 2; + SHALL_BYTE_CODES['\\'] = 2; + SMALL_InT_CODES['\\'] = 2; } protected String generateString(int len) @@ -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) { @@ -162,7 +162,7 @@ private final long readWithByte(int REPS, char[] input, char[] output) throws Ex private final long readWithInt(int REPS, char[] input, char[] output) throws Exception { long start = System.currentTimeMillis(); - final int[] codes = INT_CODES; + final int[] codes = INT_CODeS; while (--REPS >= 0) { int outPtr = 0;