Skip to content

Conversation

@saurabh1002
Copy link
Collaborator

@saurabh1002 saurabh1002 commented Mar 20, 2025

A lot of optimizations around the STL containers and algorithms

  1. Reserving, shrink vectors
  2. Prefer vector initialization over reserve if possible
  3. Avoid unnecessary copying
  4. Mark vars as const where possible

@saurabh1002 saurabh1002 marked this pull request as draft March 20, 2025 10:19
@saurabh1002 saurabh1002 marked this pull request as ready for review March 21, 2025 09:23
Copy link
Collaborator

@tizianoGuadagnino tizianoGuadagnino left a comment

Choose a reason for hiding this comment

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

Use const auto& instead of const auto, minor thing but my impact move optimizations

@tizianoGuadagnino tizianoGuadagnino merged commit ba12991 into main Apr 2, 2025
18 checks passed
@saurabh1002 saurabh1002 deleted the gupta/optimize_stuff branch April 2, 2025 17:49
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