Messages in this thread | | | Date | Tue, 16 Jun 2015 12:37:40 +0200 | Subject | Re: [PATCH] small update for strlen, strnlen, use less cpu instructions | From | Richard Weinberger <> |
| |
On Tue, Jun 16, 2015 at 11:28 AM, Orestes Leal Rodriguez <lukes357@gmail.com> wrote: > very small update to strlen and strnlen that now use less cpu instructions > by using a counter to avoid the memory addresses substraction to find the > length of the string.
This is not a valid patch submission. Please see Documentation/SubmittingPatches.
Anyway, why do you think your patch makes strlen() better? Now strlen() increments a variable for each character it faces, hence it will consume more cycles.
-- Thanks, //richard
| |