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

[perf] Remove unnecessary vec extend. #93

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

ttsugriy
Copy link
Contributor

It's not a big deal since previously it was extended from empty state, but in case it's not extended further this approach also saves memory, since there is a good chance that extend is going to reserve more memory than necessary.

ttsugriy and others added 2 commits July 26, 2023 17:58
It's not a big deal since previously it was extended from empty state, but in case it's not extended further this approach also saves memory, since there is a good chance that `extend` is going to reserve more memory than necessary.
Copy link
Owner

@guillaume-be guillaume-be left a comment

Choose a reason for hiding this comment

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

Thank you for the optimization!

@guillaume-be guillaume-be merged commit e782736 into guillaume-be:main Jul 28, 2023
@ttsugriy ttsugriy deleted the patch-1 branch July 28, 2023 23:12
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