[ https://issues.apache.org/jira/browse/OAK-8228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815450#comment-16815450 ]
Marcel Reutegger commented on OAK-8228: --------------------------------------- Proposed changes are on the GitHub branch: https://github.com/apache/jackrabbit-oak/compare/trunk...mreutegg:OAK-8228 The microbenchmark test drops from 200ms for 1M invocations to almost zero. > Optimize PathUtils.dropIndexFromName(String) > -------------------------------------------- > > Key: OAK-8228 > URL: https://issues.apache.org/jira/browse/OAK-8228 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: commons > Reporter: Marcel Reutegger > Assignee: Marcel Reutegger > Priority: Minor > Fix For: 1.14.0 > > > The implementation of {{PathUtils.dropIndexFromName(String)}} can easily be > optimized for the regular case when the name does not have an index suffix. > The current pattern matching taking place every time is rather expensive. -- This message was sent by Atlassian JIRA (v7.6.3#76005)