forked from facebook/fishhook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move symol length check out of rebinding loop (facebook#27)
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 facebook#26
- Loading branch information
1 parent
bf38895
commit 3958ea3
Showing
1 changed file
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters