[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z_PYgrzKs6juRh8e@smile.fi.intel.com>
Date: Mon, 7 Apr 2025 16:52:02 +0300
From: Andy Shevchenko <andy@...nel.org>
To: Zijun Hu <zijun_hu@...oud.com>
Cc: Kees Cook <kees@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>,
linux-hardening@...r.kernel.org, linux-kernel@...r.kernel.org,
Zijun Hu <quic_zijuhu@...cinc.com>,
"Rob Herring (Arm)" <robh@...nel.org>
Subject: Re: [PATCH 2/2] lib/string: Improve str_has_prefix() performance
On Mon, Apr 07, 2025 at 09:15:05PM +0800, Zijun Hu wrote:
> From: Zijun Hu <quic_zijuhu@...cinc.com>
>
> str_has_prefix() is frequently invoked to return length of the prefix
> string if a string has another string as prefix, but its performance
> is degraded by the strlen() loop contained.
>
> Improve its performance by eliminating the strlen() loop.
NAK.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists