Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x.x] Optimise Path Expressions that are visited by the BasicExpressionVisitor #5083

Conversation

adamretter
Copy link
Contributor

@adamretter adamretter commented Oct 9, 2023

Previously Path Expressions visited by the BasicExpressionVisitor were not optimisable. This means that a number of possible optimisations were never applied. One such example is that expressions inside of Extension Expressions were not previously optimised.

This PR also includes a number of micro-optimisations to reduce memory use of the optimizer a small amount.

NOTE: requires #5081 to be merged first.

@adamretter adamretter added the bug issue confirmed as bug label Oct 9, 2023
@adamretter adamretter added this to the eXist-6.2.1 milestone Oct 9, 2023
@adamretter adamretter requested review from dizzzz and reinhapa October 9, 2023 19:57
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 9, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

58.9% 58.9% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@adamretter adamretter changed the title Optimise Path Expressions that are visited by the BasicExpressionVisitor [6.x.x] Optimise Path Expressions that are visited by the BasicExpressionVisitor Oct 9, 2023
@dizzzz dizzzz merged commit ec00524 into eXist-db:develop-6.x.x Oct 18, 2023
7 of 16 checks passed
@adamretter adamretter deleted the 6.x.x/bugfix/optimize-inside-pragma branch November 28, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue confirmed as bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants