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

refactor: make isAttached iterative #12665

Merged
merged 1 commit into from
Jan 7, 2022
Merged

refactor: make isAttached iterative #12665

merged 1 commit into from
Jan 7, 2022

Conversation

joheriks
Copy link
Contributor

@joheriks joheriks commented Jan 3, 2022

Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.

Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.
@joheriks joheriks force-pushed the isattached-iterative branch from d9f59af to 0b983a5 Compare January 3, 2022 13:42
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 3, 2022

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

github-actions bot commented Jan 3, 2022

Unit Test Results

   769 files  ±0     769 suites  ±0   24m 50s ⏱️ +14s
5 740 tests ±0  5 688 ✔️ +1  52 💤 ±0  0 ±0 
5 774 runs  +4  5 721 ✔️ +5  53 💤 ±0  0 ±0 

Results for commit 0b983a5. ± Comparison against base commit 0a0cbb5.

@caalador caalador merged commit 5e19cb3 into master Jan 7, 2022
@caalador caalador deleted the isattached-iterative branch January 7, 2022 08:54
vaadin-bot pushed a commit that referenced this pull request Jan 7, 2022
Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.
vaadin-bot pushed a commit that referenced this pull request Jan 7, 2022
Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.
vaadin-bot pushed a commit that referenced this pull request Jan 7, 2022
Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.
vaadin-bot added a commit that referenced this pull request Jan 7, 2022
Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.

Co-authored-by: Johannes Eriksson <[email protected]>
vaadin-bot added a commit that referenced this pull request Jan 7, 2022
Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.

Co-authored-by: Johannes Eriksson <[email protected]>
vaadin-bot added a commit that referenced this pull request Jan 7, 2022
Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.

Co-authored-by: Johannes Eriksson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants