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

Move symol length check out of rebinding loop #27

Merged
merged 1 commit into from
Apr 26, 2016
Merged

Move symol length check out of rebinding loop #27

merged 1 commit into from
Apr 26, 2016

Conversation

kastiglione
Copy link
Contributor

The symbol length check is loop invariant code, and so can be done once before looping over the rebindings. Also, replaces str_longer with strnlen.

This optimization was the work of @ocrickard in #26.

The symbol length check is loop invariant code, and so can be done
once before looping over the rebindings.

Also, replaces `str_longer` with `strnlen`.

This optimization was the work of @ocrickard in
#26
@ocrickard
Copy link
Contributor

Omg thank you!

@grp grp merged commit 3958ea3 into master Apr 26, 2016
@grp
Copy link
Contributor

grp commented Apr 26, 2016

Yay!

@kastiglione kastiglione deleted the followup branch April 26, 2016 18:10
@jobsyu jobsyu mentioned this pull request Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants