Skip to content

Conversation

tdrwenski
Copy link
Collaborator

Use const references for vectors/strings in function signatures to avoid unneccessary copies. These vectors/strings are likely very small so I don't think this will make any noticeable difference in performance. But stylistically I think it is nice because it makes it clear from the signature that you don't alter those.

@tdrwenski tdrwenski merged commit e30c240 into main Jun 17, 2025
10 checks passed
@tdrwenski tdrwenski deleted the use-references branch June 17, 2025 19:14
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