-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/: Call strchrnul(3) instead of open-coding it
Performance tests made in 2007 are obsolete. We should assume libc is reasonably fast today (otherwise, report a bug to libc). $ git blame -- lib/sgetgrent.c | grep strchr 45c6603 (nekral-guest 2007-10-07 11:44:02 +0000 30) * WARNING: I profiled this once with and without strchr() calls 6f88bcf (nekral-guest 2008-05-26 08:31:14 +0000 97) cp = strchr (cp, ':'); Signed-off-by: Alejandro Colomar <[email protected]>
- Loading branch information
1 parent
bed1850
commit 5f8f19f
Showing
4 changed files
with
24 additions
and
22 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
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
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
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