From ef5f256fcc59824b17b3e9dd3c20115b61329ffd Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Tue, 22 Jun 2010 14:20:00 +0000 Subject: [PATCH] Reduced TransactionalCache in-transaction LRUMap and HashSet initial sizes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20755 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/repo/cache/TransactionalCache.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/java/org/alfresco/repo/cache/TransactionalCache.java b/source/java/org/alfresco/repo/cache/TransactionalCache.java index c7682c97fc..1eb1a6b283 100644 --- a/source/java/org/alfresco/repo/cache/TransactionalCache.java +++ b/source/java/org/alfresco/repo/cache/TransactionalCache.java @@ -188,8 +188,8 @@ public class TransactionalCache { data = new TransactionData(); // create and initialize caches - data.updatedItemsCache = new LRUMap(maxCacheSize); - data.removedItemsCache = new HashSet(maxCacheSize * 2); + data.updatedItemsCache = new LRUMap(17); + data.removedItemsCache = new HashSet(13); // ensure that we get the transaction callbacks as we have bound the unique // transactional caches to a common manager