]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-144264: Speed up Base64 decoding of data containing ignored characters (GH-144265)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 29 Jan 2026 15:33:10 +0000 (17:33 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jan 2026 15:33:10 +0000 (17:33 +0200)
commit92c0ec2b007757287a5c4791437a8d5a6173ce58
treefd6728bbd5809b11d190b6a4d279d8f0a4d1152d
parent0fa1fc69f3ff0deb778e3c9f37cdc0c702bc8ad2
gh-144264: Speed up Base64 decoding of data containing ignored characters (GH-144265)

Try the fast path again after decoding a quad the slow path.
Use a bitmap cache for the ignorechars argument.
Lib/test/test_binascii.py
Misc/NEWS.d/next/Library/2026-01-27-10-02-04.gh-issue-144264.Wmzbol.rst [new file with mode: 0644]
Modules/binascii.c