mirror of https://github.com/apache/openjpa.git
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:
parent
60b97e307f
commit
cd7851e9d3
|
@ -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>());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue