You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Nuno Santos (Jira)" <ji...@apache.org> on 2024/05/16 13:19:00 UTC
[jira] [Resolved] (OAK-10804) Indexing job: optimize check for hidden nodes
[ https://issues.apache.org/jira/browse/OAK-10804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nuno Santos resolved OAK-10804.
-------------------------------
Fix Version/s: 1.64.0
Resolution: Done
> Indexing job: optimize check for hidden nodes
> ---------------------------------------------
>
> Key: OAK-10804
> URL: https://issues.apache.org/jira/browse/OAK-10804
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: indexing
> Reporter: Nuno Santos
> Priority: Minor
> Fix For: 1.64.0
>
>
> 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)