Description
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.
Attachments
Issue Links
- links to