jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1574521 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
Date Wed, 05 Mar 2014 15:04:56 GMT
Author: jukka
Date: Wed Mar  5 15:04:55 2014
New Revision: 1574521

URL: http://svn.apache.org/r1574521
Log:
OAK-1418: Read performance regression

Avoid one method call on the critical path in NamePathMapperImpl

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java?rev=1574521&r1=1574520&r2=1574521&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
Wed Mar  5 15:04:55 2014
@@ -95,7 +95,7 @@ public class NamePathMapperImpl implemen
         } else if (oakPath.isEmpty()) {
             // empty path: map to "."
             return ".";
-        } else if (getSessionLocalMappings().isEmpty()) {
+        } else if (nameMapper.getSessionLocalMappings().isEmpty()) {
             // no local namespace mappings
             return oakPath;
         }
@@ -282,7 +282,7 @@ public class NamePathMapperImpl implemen
             }
         }
 
-        return colon != -1 && !getSessionLocalMappings().isEmpty();
+        return colon != -1 && !nameMapper.getSessionLocalMappings().isEmpty();
     }
 
     //------------------------------------------------------------< PathListener >---



Mime
View raw message