lkml.org 
[lkml]   [2023]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v1 1/1] lib/string: Use strchr() in strpbrk()
    Date
    On Fri, 27 Jan 2023 17:51:35 +0200, Andy Shevchenko wrote:
    > Use strchr() instead of open coding it as it's done elsewhere in
    > the same file. Either we will have similar to what it was or possibly
    > better performance in case architecture implements its own strchr().
    >
    > Memory wise on x86_64 bloat-o-meter shows the following
    >
    > Function old new delta
    > strsep 111 102 -9
    > Total: Before=2763, After=2754, chg -0.33%
    >
    > [...]

    Applied to for-next/hardening, thanks!

    [1/1] lib/string: Use strchr() in strpbrk()
    https://git.kernel.org/kees/c/a5f5ee7c49da

    --
    Kees Cook

    \
     
     \ /
      Last update: 2023-03-26 23:59    [W:3.616 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site