Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-12-15 12:37:41 -0500
committerEike Stepper2011-12-15 12:37:41 -0500
commit45431d2c257df7b91e615b6cb243383bf6854738 (patch)
tree25402bc738203ba0257eedf323c0331582d11b0f
parent05a4f7b7c50c0477d7bc88c63f4532fbcff551df (diff)
downloadcdo-45431d2c257df7b91e615b6cb243383bf6854738.tar.gz
cdo-45431d2c257df7b91e615b6cb243383bf6854738.tar.xz
cdo-45431d2c257df7b91e615b6cb243383bf6854738.zip
[366803] Improve performance of CDOTransactionImpl.getID(InternalCDOObject, boolean)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366803
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
index cf4894250b..3569675e78 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
@@ -50,6 +50,8 @@ import org.eclipse.emf.cdo.common.revision.delta.CDOSetFeatureDelta;
import org.eclipse.emf.cdo.common.util.CDOException;
import org.eclipse.emf.cdo.common.util.RepositoryStateChangedEvent;
import org.eclipse.emf.cdo.common.util.RepositoryTypeChangedEvent;
+import org.eclipse.emf.cdo.eresource.EresourcePackage;
+import org.eclipse.emf.cdo.etypes.EtypesPackage;
import org.eclipse.emf.cdo.internal.common.revision.delta.CDOMoveFeatureDeltaImpl;
import org.eclipse.emf.cdo.internal.common.revision.delta.CDOSetFeatureDeltaImpl;
import org.eclipse.emf.cdo.internal.common.revision.delta.CDOSingleValueFeatureDeltaImpl;
@@ -110,6 +112,7 @@ import org.eclipse.emf.common.util.ECollections;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.spi.cdo.CDOSessionProtocol;
import org.eclipse.emf.spi.cdo.CDOSessionProtocol.RefreshSessionResult;
import org.eclipse.emf.spi.cdo.InternalCDORemoteSessionManager;
@@ -204,6 +207,14 @@ public abstract class CDOSessionImpl extends CDOTransactionContainerImpl impleme
*/
private Map<CDOID, CDOBranchPoint> committedSinceLastRefresh = new HashMap<CDOID, CDOBranchPoint>();
+ static
+ {
+ // Ensure that these 3 packages are registered with the global package registry in stand-alone
+ EcorePackage.eINSTANCE.getClass();
+ EresourcePackage.eINSTANCE.getClass();
+ EtypesPackage.eINSTANCE.getClass();
+ }
+
public CDOSessionImpl()
{
}

Back to the top