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

optimize send_commands() function #187

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

ReDTerraN
Copy link
Contributor

Instead of declaring the variables, changing them inside the for loop and using them once.
We streamline it to directly call what is taken as arguments to the function. Instead of redeclaring _index with the new value we directly call _index to be increased by one. Providing us with a small performance increase when running the function.

Cheers

@greymd greymd merged commit dbe36af into greymd:master Apr 6, 2023
@greymd
Copy link
Owner

greymd commented Apr 6, 2023

Merged, thanks!

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