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

Don't .reserve() without a need #171

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

WaffleLapkin
Copy link
Contributor

Note that .push() already reserve space for at least 4 elements (see here and here), so a .reserve(5) most likely doesn't do anything useful.

@mikaelmello mikaelmello merged commit 8613566 into mikaelmello:main Nov 1, 2023
@WaffleLapkin WaffleLapkin deleted the don't_reserve branch November 7, 2023 20:11
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.

2 participants