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

Make funtions more functional #20

Open
KGergo88 opened this issue May 2, 2019 · 0 comments
Open

Make funtions more functional #20

KGergo88 opened this issue May 2, 2019 · 0 comments
Assignees
Labels
enhancement New, or improved functionality

Comments

@KGergo88
Copy link
Owner

KGergo88 commented May 2, 2019

Make a code review based on this cool article. Also take into accout how you can improve performance with this other cool article.

Keywords:

  • Return by value, RVO, NRVO, copy elision instead returning references
  • Exceptions / std::optional instead of bool return
  • Structured Bindings instead of reference parameter outputs

Suspection:

  • The MeasurementDataProtocol is not efficiently returning the Diagrams because the data will be copied first to the std::istream then to the Diagram then the diagram will be copied to the std::vector
@KGergo88 KGergo88 added the enhancement New, or improved functionality label May 2, 2019
@KGergo88 KGergo88 self-assigned this May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New, or improved functionality
Projects
None yet
Development

No branches or pull requests

1 participant