Re: [PATCH] cksum: improve problematic_chars function

2023-07-14 Thread Jim Meyering
On Fri, Jul 14, 2023 at 3:27 AM Pádraig Brady wrote: > On 14/07/2023 07:54, Jim Meyering wrote: > > Small suggested improvement: > > Looks good thanks. > Testing with the attached shows a 23% improvement on average > with using strcspn() over strchr()x3. Thanks for checking. Pushed.

Re: [PATCH] cksum: improve problematic_chars function

2023-07-14 Thread Pádraig Brady
On 14/07/2023 07:54, Jim Meyering wrote: Small suggested improvement: Looks good thanks. Testing with the attached shows a 23% improvement on average with using strcspn() over strchr()x3. thanks, Pádraig.#include #include #include #include __attribute__ ((__pure__)) static bool problemati