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
This commit is contained in:
Derek Hulley
2010-06-22 14:20:00 +00:00
parent 472fde8509
commit ef5f256fcc

View File

@@ -188,8 +188,8 @@ public class TransactionalCache<K extends Serializable, V extends Object>
{
data = new TransactionData();
// create and initialize caches
data.updatedItemsCache = new LRUMap(maxCacheSize);
data.removedItemsCache = new HashSet<K>(maxCacheSize * 2);
data.updatedItemsCache = new LRUMap(17);
data.removedItemsCache = new HashSet<K>(13);
// ensure that we get the transaction callbacks as we have bound the unique
// transactional caches to a common manager