directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1331369 - /directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Date Fri, 27 Apr 2012 11:51:04 GMT
Author: elecharny
Date: Fri Apr 27 11:51:04 2012
New Revision: 1331369

URL: http://svn.apache.org/viewvc?rev=1331369&view=rev
Log:
Slight optimization that save us 7% of CPU consumption

Modified:
    directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java

Modified: directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=1331369&r1=1331368&r2=1331369&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
(original)
+++ directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Fri Apr 27 11:51:04 2012
@@ -2044,16 +2044,7 @@ public class DefaultDirectoryService imp
         try
         {
             readLock.lock();
-
-            for ( Interceptor interceptor : interceptors )
-            {
-                if ( interceptor.getName().equalsIgnoreCase( interceptorName ) )
-                {
-                    return interceptor;
-                }
-            }
-
-            return null;
+            return interceptorNames.get( interceptorName );
         }
         finally
         {



Mime
View raw message