From 5703e5181092b44e8565fa318d1318c3d6a9295f Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 5 Sep 2016 11:43:47 +0200 Subject: [PATCH] BUG-5410: optimize CaseInsensitiveMap This propagates would-be constants to real constatants, allowing them to be better optimized. Change-Id: I500e8060db0f3e22ca19be4188169f74e9a03271 Signed-off-by: Robert Varga --- .../xsd/regex/CaseInsensitiveMap.java | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/third-party/xsd-regex/src/main/java/org/opendaylight/yangtools/xsd/regex/CaseInsensitiveMap.java b/third-party/xsd-regex/src/main/java/org/opendaylight/yangtools/xsd/regex/CaseInsensitiveMap.java index 2fc846812c..b0e9dca173 100644 --- a/third-party/xsd-regex/src/main/java/org/opendaylight/yangtools/xsd/regex/CaseInsensitiveMap.java +++ b/third-party/xsd-regex/src/main/java/org/opendaylight/yangtools/xsd/regex/CaseInsensitiveMap.java @@ -24,25 +24,21 @@ package org.opendaylight.yangtools.xsd.regex; */ final class CaseInsensitiveMap { - private static int CHUNK_SHIFT = 10; /* 2^10 = 1k */ - private static int CHUNK_SIZE = (1<