Nuno Santos created OAK-10804: --------------------------------- Summary: Indexing job: optimize check for if a node is hidden Key: OAK-10804 URL: https://issues.apache.org/jira/browse/OAK-10804 Project: Jackrabbit Oak Issue Type: Improvement Components: indexing Reporter: Nuno Santos
While downloading the repository from Mongo, the indexing job has to discard hidden entries. This is being done by a call to `NodeStateUtils.isHiddenPath()`. This call is rather expensive, as it creates an iterator over the path segments, which requires creating a new string for each path segment. As the indexing job has to check every entry to verify if it is hidden, this creates a significant overhead. The implementation of checking for hidden paths can be replaced by a simple search for {{"/:"}} in the string representing the path, which requires no object allocation and should therefore be much faster. -- This message was sent by Atlassian Jira (v8.20.10#820010)