8000 gh-118761: substitute `re` import in `base64.b16decode` for a more efficient alternative by picnixz · Pull Request #128736 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-118761: substitute re import in base64.b16decode for a more efficient alternative #128736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Misc/NEWS.d/next/Library/2025-01-10-13-06-54.gh-issue-118761.f…
…8oADD.rst

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
picnixz and AA-Turner authored Jan 14, 2025
commit 82d18d7b522ed60b6b042d88e8046061f3dfd49f
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Improve performance of :func:`base64.b16decode` by a factor ten by
removing an unnecessary regular expression. Consequently, :mod:`re`
is no more implicitly available as ``base64.re`` and import time of
:mod:`base64` is improved by a factor six. Patch by Bénédikt Tran.
Improve the performance of :func:`base64.b16decode` by up to ten times
by more efficiently checking the byte-string for hexadecimal digits.
Reduce the import time of :mod:`base64` by up to six times,
by no longer importing :mod:`re`.
Patch by Bénédikt Tran, Chris Markiewicz, and Adam Turner.
Loading
0