directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r952961 - in /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core: event/EventInterceptor.java subtree/SubentryInterceptor.java trigger/TriggerInterceptor.java
Date Wed, 09 Jun 2010 11:11:19 GMT
Author: elecharny
Date: Wed Jun  9 11:11:18 2010
New Revision: 952961

URL: http://svn.apache.org/viewvc?rev=952961&view=rev
Log:
Removed three lookups in the Move operation, gaining 10% speed

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java?rev=952961&r1=952960&r2=952961&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
Wed Jun  9 11:11:18 2010
@@ -268,7 +268,7 @@ public class EventInterceptor extends Ba
 
     public void move( NextInterceptor next, MoveOperationContext opContext ) throws LdapException
     {
-        Entry oriEntry = opContext.lookup( opContext.getDn(), ByPassConstants.LOOKUP_BYPASS
);
+        Entry oriEntry = opContext.getEntry();
         List<RegistrationEntry> selecting = getSelectingRegistrations( opContext.getDn(),
oriEntry );
 
         next.move( opContext );

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java?rev=952961&r1=952960&r2=952961&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
Wed Jun  9 11:11:18 2010
@@ -966,7 +966,7 @@ public class SubentryInterceptor extends
         DN oriChildName = opContext.getDn();
         DN newParentName = opContext.getParent();
 
-        Entry entry = opContext.lookup( oriChildName, ByPassConstants.LOOKUP_BYPASS );
+        Entry entry = opContext.getEntry();
 
         EntryAttribute objectClasses = entry.get( SchemaConstants.OBJECT_CLASS_AT );
 

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java?rev=952961&r1=952960&r2=952961&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java
Wed Jun  9 11:11:18 2010
@@ -493,7 +493,7 @@ public class TriggerInterceptor extends 
         DN newParentName = opContext.getParent();
 
         // Gather supplementary data.        
-        Entry movedEntry = opContext.lookup( oriChildName, ByPassConstants.LOOKUP_BYPASS
);
+        Entry movedEntry = opContext.getEntry();
 
         DN oldRDN = new DN( oriChildName.getRdn().getName() );
         RDN newRDN = new RDN( oriChildName.getRdn().getName() );



Mime
View raw message