From: Nathan Moinvaziri <nathan@nathanm.com>
To: Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Andy Shevchenko <andy@kernel.org>
Subject: Re: [PATCH] lib/string.c: Improve strcasecmp speed by not lowering if chars match
Date: Tue, 25 Oct 2022 22:37:27 +0000 [thread overview]
Message-ID: <cad4345a-9a51-34ca-b599-f8f98db40200@nathanm.com> (raw)
In-Reply-To: <7695dbae-0fc6-d53c-5b9f-b3bd7e7fe8f8@prevas.dk>
On 10/25/2022 12:55 PM, Rasmus Villemoes wrote:
> Are there any code paths in the kernel where strcasecmp performance
> matters? strcmp, sure, but strcasecmp or strncasecmp? I don't think so.
> If anything, we should nuke the complication in strncasecmp(), and then
> make strcasecmp() simply do strncasecmp(a, b, SIZE_MAX).
It looks like several of the string functions could be collapsed in that
way.
Nathan
prev parent reply other threads:[~2022-10-25 22:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-25 1:46 [PATCH] lib/string.c: Improve strcasecmp speed by not lowering if chars match Nathan Moinvaziri
2022-10-25 8:00 ` Andy Shevchenko
2022-10-25 9:03 ` Andy Shevchenko
2022-10-25 17:53 ` Nathan Moinvaziri
2022-10-25 19:19 ` Andy Shevchenko
2022-10-27 3:29 ` Nathan Moinvaziri
2022-10-27 6:31 ` Andy Shevchenko
2022-10-25 19:32 ` Christophe JAILLET
2022-10-25 23:27 ` Nathan Moinvaziri
2022-10-25 19:55 ` Rasmus Villemoes
2022-10-25 22:37 ` Nathan Moinvaziri [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cad4345a-9a51-34ca-b599-f8f98db40200@nathanm.com \
--to=nathan@nathanm.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rasmus.villemoes@prevas.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.