gh-143658: importlib.metadata: Use str.translate to improve performance of importlib.metadata.Prepared.normalized#143660
Merged
hugovk merged 7 commits intoJan 13, 2026
python:mainpython/cpython:mainfrom
hugovk:3.15-importlib.metadata-canonicalize_namehugovk/cpython:3.15-importlib.metadata-canonicalize_nameCopy head branch name to clipboard
Merged
gh-143658: importlib.metadata: Use str.translate to improve performance of importlib.metadata.Prepared.normalized#143660hugovk merged 7 commits intopython:mainpython/cpython:mainfrom hugovk:3.15-importlib.metadata-canonicalize_namehugovk/cpython:3.15-importlib.metadata-canonicalize_nameCopy head branch name to clipboard
str.translate to improve performance of importlib.metadata.Prepared.normalized#143660hugovk merged 7 commits into
python:mainpython/cpython:mainfrom
hugovk:3.15-importlib.metadata-canonicalize_namehugovk/cpython:3.15-importlib.metadata-canonicalize_nameCopy head branch name to clipboard
Commits
Commits on Jan 10, 2026
Use translate to improve performance of canonicalize_name
Show description for 76e2272andcommitted- committed
Improve blurb
Show description for c1bb3ccandauthoredImprove comment
Show description for 0eae552andauthored- committed
- committed
Add extra test case with repeated separator
Show description for 7b7f9a8andauthored