Skip to content

Conversation

@reschke
Copy link
Contributor

@reschke reschke commented Jul 7, 2025

No description provided.

@reschke reschke self-assigned this Jul 7, 2025
@reschke reschke requested review from joerghoh, kwin and mbaedke July 7, 2025 09:45
throws RepositoryException {
NamespaceRegistry registry =
session.getWorkspace().getNamespaceRegistry();
NamespaceRegistry registry = getNamespaceRegistry();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any pointers on how much overhead this call is? I was assuming this is not leading to complex and expensive object creations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently it does in Oak - see https://issues.apache.org/jira/browse/OAK-11784 - it's of course a good question why it is expensive in Oak. @mbaedke - any idea?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that this is is an expensive operation by itself. It's rather a problem if there are a lot of registered prefixes (see the excerpt of the stacktrace in https://issues.apache.org/jira/browse/OAK-11784), which leads to many invocations of this method.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@reschke reschke merged commit 62747fa into trunk Jul 8, 2025
3 of 4 checks passed
@reschke reschke deleted the JCR-5161 branch July 8, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants