Skip to content

[CALCITE-5563] Reduce loops to optimize RelSubset#getParents and RelSubset#getParentSubsets#3098

Merged
rubenada merged 1 commit intoapache:mainfrom
asdfgh19:CALCITE-5563
Apr 21, 2023
Merged

[CALCITE-5563] Reduce loops to optimize RelSubset#getParents and RelSubset#getParentSubsets#3098
rubenada merged 1 commit intoapache:mainfrom
asdfgh19:CALCITE-5563

Conversation

@asdfgh19
Copy link
Copy Markdown

@asdfgh19 asdfgh19 commented Mar 7, 2023

jira: CALCITE-5563
Once we have found a matching Relsubset from its parent input, we can immediately end the inner loop

@asdfgh19 asdfgh19 changed the title [CALCITE-5563] Add a break to the inner loop of RelSubset#getParents and RelSubset#getParentSubsets [CALCITE-5563] Reduce loops to improve RelSubset Mar 8, 2023
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@rubenada rubenada self-assigned this Apr 20, 2023
@rubenada
Copy link
Copy Markdown
Contributor

@asdfgh19 Thanks for this improvement!
Could you please squash commits into a single one? As commit message, I'd suggest [CALCITE-5563] Reduce loops to optimize RelSubset#getParents and RelSubset#getParentSubsets

@rubenada rubenada added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Apr 20, 2023
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@asdfgh19
Copy link
Copy Markdown
Author

@rubenada Thanks for reviewing the code!

@rubenada rubenada changed the title [CALCITE-5563] Reduce loops to improve RelSubset [CALCITE-5563] Reduce loops to optimize RelSubset#getParents and RelSubset#getParentSubsets Apr 20, 2023
@rubenada rubenada merged commit f500e2f into apache:main Apr 21, 2023
@asdfgh19 asdfgh19 deleted the CALCITE-5563 branch April 21, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LGTM-will-merge-soon Overall PR looks OK. Only minor things left.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants