You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/07/22 10:03:34 UTC
[1/2] camel git commit: CAMEL-8994: Use 16 as initial capacity in
LRUCache by default.
Repository: camel
Updated Branches:
refs/heads/camel-2.15.x a3b216df5 -> 5640ba76d
refs/heads/master 542ab3e8c -> 473d1b28b
CAMEL-8994: Use 16 as initial capacity in LRUCache by default.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/473d1b28
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/473d1b28
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/473d1b28
Branch: refs/heads/master
Commit: 473d1b28bbc3871aa04c89f6a603e0b760ea296a
Parents: 542ab3e
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Jul 22 10:10:03 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jul 22 10:10:03 2015 +0200
----------------------------------------------------------------------
camel-core/src/main/java/org/apache/camel/util/LRUCache.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/473d1b28/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
index 9599cac..07d36e1 100644
--- a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
+++ b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
@@ -56,7 +56,7 @@ public class LRUCache<K, V> implements Map<K, V>, EvictionListener<K, V>, Serial
* @throws IllegalArgumentException if the initial capacity is negative
*/
public LRUCache(int maximumCacheSize) {
- this(maximumCacheSize, maximumCacheSize);
+ this(16, maximumCacheSize); // 16 is the default initial capacity in ConcurrentLinkedHashMap
}
/**
[2/2] camel git commit: CAMEL-8994: Use 16 as initial capacity in
LRUCache by default.
Posted by da...@apache.org.
CAMEL-8994: Use 16 as initial capacity in LRUCache by default.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5640ba76
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5640ba76
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5640ba76
Branch: refs/heads/camel-2.15.x
Commit: 5640ba76df39de3daa2fcf6634c50b58a3663546
Parents: a3b216d
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Jul 22 10:10:03 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jul 22 10:10:28 2015 +0200
----------------------------------------------------------------------
camel-core/src/main/java/org/apache/camel/util/LRUCache.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/5640ba76/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
index 9599cac..07d36e1 100644
--- a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
+++ b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
@@ -56,7 +56,7 @@ public class LRUCache<K, V> implements Map<K, V>, EvictionListener<K, V>, Serial
* @throws IllegalArgumentException if the initial capacity is negative
*/
public LRUCache(int maximumCacheSize) {
- this(maximumCacheSize, maximumCacheSize);
+ this(16, maximumCacheSize); // 16 is the default initial capacity in ConcurrentLinkedHashMap
}
/**