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

Optimize container insertions using emplace_back instead of push_back #234

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

Vyacguru
Copy link
Contributor

@Vyacguru Vyacguru commented Jun 7, 2024

  • Replaced push_back with emplace_back for container insertions throughout the codebase.
  • Improved performance by constructing elements directly in the containers, avoiding unnecessary copying or moving.
  • Ensured that all relevant container insertions now use emplace_back to take advantage of its efficiency benefits.
  • This change enhances overall code efficiency and readability.

@MihailRis MihailRis merged commit 9fc6d2c into MihailRis:main Jun 7, 2024
4 checks passed
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.

3 participants