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

Use of auto variables #26

Open
muchip opened this issue Apr 12, 2020 · 0 comments
Open

Use of auto variables #26

muchip opened this issue Apr 12, 2020 · 0 comments
Assignees
Labels
performance Fixing this issue will increase performance

Comments

@muchip
Copy link
Collaborator

muchip commented Apr 12, 2020

We should (as a general rule) restrict the use of auto variables to primitive types. Apparently, the type inference to const& for complex objects is not used as expected in several places in the code, thus generating a huge overhead due to unecessary temporary object creation.

@muchip muchip added the performance Fixing this issue will increase performance label Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Fixing this issue will increase performance
Projects
None yet
Development

No branches or pull requests

3 participants