[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFLxGvzh621foWC6D3rBv9=_iHjFAU7VNqqpRf6wwCO7Ucq=LQ@mail.gmail.com>
Date: Tue, 16 Jun 2015 12:37:40 +0200
From: Richard Weinberger <richard.weinberger@...il.com>
To: Orestes Leal Rodriguez <lukes357@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] small update for strlen, strnlen, use less cpu instructions
On Tue, Jun 16, 2015 at 11:28 AM, Orestes Leal Rodriguez
<lukes357@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists