]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93033: Use wmemchr in stringlib (GH-93034)
authorgoldsteinn <35538541+goldsteinn@users.noreply.github.com>
Tue, 24 May 2022 01:45:31 +0000 (20:45 -0500)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 01:45:31 +0000 (10:45 +0900)
commit7108bdf27c7a460cf83c4a01dea54ae4591d8aea
tree0ebf080594979a194459f6d5f4f30cb6fafffdac
parentf7fabae75c7b8ecd0c5673b5d62a15db24a05953
gh-93033: Use wmemchr in stringlib (GH-93034)

Generally comparable perf for the "good" case where memchr doesn't
return any collisions (false matches on lower byte) but clearly faster
with collisions.
Misc/NEWS.d/next/Library/2022-05-22-23-46-18.gh-issue-93033.wZfiL-.rst [new file with mode: 0644]
Objects/bytearrayobject.c
Objects/bytes_methods.c
Objects/stringlib/asciilib.h
Objects/stringlib/fastsearch.h
Objects/stringlib/replace.h
Objects/stringlib/stringdefs.h
Objects/stringlib/ucs1lib.h
Objects/stringlib/ucs2lib.h
Objects/stringlib/ucs4lib.h
Objects/stringlib/undef.h