[Schmitzm-commits] r2040 - trunk/schmitzm-core/src/main/java/de/schmitzm/regex
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon May 28 00:38:55 CEST 2012
Author: alfonx
Date: 2012-05-28 00:38:55 +0200 (Mon, 28 May 2012)
New Revision: 2040
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java 2012-05-27 22:10:09 UTC (rev 2039)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java 2012-05-27 22:38:55 UTC (rev 2040)
@@ -53,19 +53,19 @@
private static final int CACHE_VALUES_TO_RESULT_MAX_REGEX_LENGTH = 100;
private final ConcurrentLRUCache<String, ThreadLocal<Matcher>> matchersCache = new ConcurrentLRUCache<String, ThreadLocal<Matcher>>(
- 55000, 45000);
+ 60000, 40000);
private static RegexCache singletonInstance;
- private final ConcurrentLRUCache<String, Pattern> patternCache = new ConcurrentLRUCache<String, Pattern>(70000,
- 50000);
+ private final ConcurrentLRUCache<String, Pattern> patternCache = new ConcurrentLRUCache<String, Pattern>(100000,
+ 70000);
public static RegexCache getInstance() {
return singletonInstance != null ? singletonInstance : new RegexCache();
}
private final ConcurrentLRUCache<String, MyMatchResult> resultsCache = new ConcurrentLRUCache<String, MyMatchResult>(
- 400000, 300000);
+ 300000, 200000);
private RegexCache() {
singletonInstance = this;
More information about the Schmitzm-commits
mailing list