OPENJPA-2292: Use java.util.IdentityHashMap in BrokerImpl.initializeOperatingSet to reduce object allocations.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1406228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard G. Curtis 2012-11-06 17:17:04 +00:00
parent 60b97e307f
commit cd7851e9d3
1 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@ import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
@ -392,8 +393,9 @@ public class BrokerImpl
beginInternal();
}
@SuppressWarnings("unchecked")
private void initializeOperatingSet() {
_operating = MapBackedSet.decorate(new IdentityMap());
_operating = MapBackedSet.decorate(new IdentityHashMap<Object, Object>());
}
/**