Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pass parameters as const & #35

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

Merged
merged 2 commits into from
May 10, 2020
Merged

Conversation

Jeroen88
Copy link

@Jeroen88 Jeroen88 commented May 7, 2020

Pass each NimBLEUUID, NimBLEAddress, std::string and uint8_t * parameter as const & instead of by value. This leads to (a bit) smaller code and performance improvement.

@h2zero I could not stop myself ;)

…ter as const & instead of by value. This leads to (a bit) smaller code and performance improvement
@h2zero
Copy link
Owner

h2zero commented May 7, 2020

Lol, I’ll have a look when I get some time. Thanks!

@h2zero h2zero mentioned this pull request May 9, 2020
@h2zero
Copy link
Owner

h2zero commented May 10, 2020

Thanks @Jeroen88, nice work on this, saves some cycles (and my time 😃 ) for sure.

@h2zero h2zero merged commit ee9bdaf into h2zero:master May 10, 2020
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