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

pkg/query: Use non-generic method to clone children list #3552

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

brancz
Copy link
Member

@brancz brancz commented Aug 3, 2023

The generic version is a lot more expensive as it grows the slice one by one, instead of pre-allocating the result size.

@brancz brancz requested a review from a team as a code owner August 3, 2023 14:25
@alwaysmeticulous
Copy link

alwaysmeticulous bot commented Aug 3, 2023

✅ Meticulous spotted zero visual differences across 331 screens tested: view results.

Last updated for commit b780bbb. This comment will update as new commits are pushed.

The generic version is a lot more expensive as it grows the slice one by
one, instead of pre-allocating the result size.
@brancz brancz force-pushed the non-generic-children-clone branch from babf257 to b780bbb Compare August 3, 2023 15:34
@brancz brancz enabled auto-merge August 3, 2023 15:59
@brancz brancz merged commit fccd949 into main Aug 3, 2023
@brancz brancz deleted the non-generic-children-clone branch August 3, 2023 16:22
brancz added a commit that referenced this pull request Aug 5, 2023
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.

2 participants