Skip to content

Optimization#3

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

Optimization#3
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 10, 2018

strlen() in a loop condition does strlen() each step. That means unless you change your message length in a loop (in this code you don't), strlen() has to be stored in a variable to avoid running it over and over and getting the same result.

strlen() in a loop condition does strlen() each step. That means unless you change your message length in a loop (in this code you don't), strlen() has to be stored in a variable to avoid running it over and over and getting the same result.
@beneater
Copy link
Copy Markdown
Owner

Thanks for the suggestion. This is a duplicate of PR #1.

@beneater beneater closed this Jul 11, 2018
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.

1 participant