René's URL Explorer Experiment


Title: gh-122288: Improve performances of `fnmatch.translate` by picnixz · Pull Request #122289 · python/cpython · GitHub

Open Graph Title: gh-122288: Improve performances of `fnmatch.translate` by picnixz · Pull Request #122289 · python/cpython

X Title: gh-122288: Improve performances of `fnmatch.translate` by picnixz · Pull Request #122289 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This is a smaller PR compared to the one for the C implementation and is probably easier to review. Below are the benchmarks reported on the issue: +------------------------------------------+-----...

X Description: This is a smaller PR compared to the one for the C implementation and is probably easier to review. Below are the benchmarks reported on the issue: +------------------------------------------+-----...

Opengraph URL: https://github.com/python/cpython/pull/122289

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:a402d304-8ea6-1666-d3db-93a74b8e065c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC83E:4D9F2:18DBA60:20FB3AA:6B0213B8
html-safe-noncebe635acb6aaaaaec88d1ff05e50f72d98983c8f082baa1f2d648ddb0b83bc845
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODNFOjREOUYyOjE4REJBNjA6MjBGQjNBQTo2QjAyMTNCOCIsInZpc2l0b3JfaWQiOiI0MTAxMDg3MjY0MjU4NTI4MTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5f380eef4cbf8d9a36db55de06aa4a511ba5b22528640a4f6836f36cc64f36b5
hovercard-subject-tagpull_request:1987897269
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/122289/commits
twitter:imagehttps://opengraph.githubassets.com/7f6f74df15808d8cbd12c52a1734077f1df2da20b20b710521e2709466bd516c/python/cpython/pull/122289
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f6f74df15808d8cbd12c52a1734077f1df2da20b20b710521e2709466bd516c/python/cpython/pull/122289
og:image:altThis is a smaller PR compared to the one for the C implementation and is probably easier to review. Below are the benchmarks reported on the issue: +------------------------------------------+-----...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/122289/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122289%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122289%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/122289/commits
Reloadhttps://github.com/python/cpython/pull/122289/commits
Reloadhttps://github.com/python/cpython/pull/122289/commits
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fnmatch-py-implementationhttps://github.com/picnixz/cpython/tree/fnmatch-py-implementation
Conversationhttps://github.com/python/cpython/pull/122289
Commits18 (18)https://github.com/python/cpython/pull/122289/commits
Checkshttps://github.com/python/cpython/pull/122289/checks
Files changedhttps://github.com/python/cpython/pull/122289/files
gh-122288: Improve performances of fnmatch.translatehttps://github.com/python/cpython/pull/122289/commits#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fnmatch-py-implementationhttps://github.com/picnixz/cpython/tree/fnmatch-py-implementation
improve performances of `fnmatch.translate`https://github.com/python/cpython/pull/122289/commits/7f15063ad1d0f39f3df43fc54cfa1bc31fe0cbb6
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
7f15063https://github.com/python/cpython/pull/122289/commits/7f15063ad1d0f39f3df43fc54cfa1bc31fe0cbb6
https://github.com/python/cpython/tree/7f15063ad1d0f39f3df43fc54cfa1bc31fe0cbb6
add testshttps://github.com/python/cpython/pull/122289/commits/83d0904e3ef34cbc3a3980813e4c9e4d9989791f
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
83d0904https://github.com/python/cpython/pull/122289/commits/83d0904e3ef34cbc3a3980813e4c9e4d9989791f
https://github.com/python/cpython/tree/83d0904e3ef34cbc3a3980813e4c9e4d9989791f
blurbhttps://github.com/python/cpython/pull/122289/commits/275a1c78624444cc0c10625e219f0791c30168c4
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
275a1c7https://github.com/python/cpython/pull/122289/commits/275a1c78624444cc0c10625e219f0791c30168c4
https://github.com/python/cpython/tree/275a1c78624444cc0c10625e219f0791c30168c4
fix usageshttps://github.com/python/cpython/pull/122289/commits/e60d057bccf37c24b4723eddee7cc66dc9c9c48e
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
e60d057https://github.com/python/cpython/pull/122289/commits/e60d057bccf37c24b4723eddee7cc66dc9c9c48e
https://github.com/python/cpython/tree/e60d057bccf37c24b4723eddee7cc66dc9c9c48e
keep legacy version for globhttps://github.com/python/cpython/pull/122289/commits/03217d7b6dec482a4caa3c2d79b5fbb2041da75b
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
03217d7https://github.com/python/cpython/pull/122289/commits/03217d7b6dec482a4caa3c2d79b5fbb2041da75b
https://github.com/python/cpython/tree/03217d7b6dec482a4caa3c2d79b5fbb2041da75b
actually not needed...https://github.com/python/cpython/pull/122289/commits/804da13fae3ee48f93a5064273af3401a3c8334d
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
804da13https://github.com/python/cpython/pull/122289/commits/804da13fae3ee48f93a5064273af3401a3c8334d
https://github.com/python/cpython/tree/804da13fae3ee48f93a5064273af3401a3c8334d
Merge branch 'main' into fnmatch-py-implementationhttps://github.com/python/cpython/pull/122289/commits/06a3652b993b94ceb6c0106d537ab1b638a71ea6
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
06a3652https://github.com/python/cpython/pull/122289/commits/06a3652b993b94ceb6c0106d537ab1b638a71ea6
https://github.com/python/cpython/tree/06a3652b993b94ceb6c0106d537ab1b638a71ea6
reduce the number of calls to `str.join`https://github.com/python/cpython/pull/122289/commits/baa6ce37b3f5908d311e7342f7314896c07edb34
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
baa6ce3https://github.com/python/cpython/pull/122289/commits/baa6ce37b3f5908d311e7342f7314896c07edb34
https://github.com/python/cpython/tree/baa6ce37b3f5908d311e7342f7314896c07edb34
micro-optimization on `re.sub`https://github.com/python/cpython/pull/122289/commits/80b22e005087f23cac1551d0daabae4cc00f3f34
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
80b22e0https://github.com/python/cpython/pull/122289/commits/80b22e005087f23cac1551d0daabae4cc00f3f34
https://github.com/python/cpython/tree/80b22e005087f23cac1551d0daabae4cc00f3f34
address Barney's reviewhttps://github.com/python/cpython/pull/122289/commits/7a9a87ce23a5599274a5426ac7103d001eb6c073
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
7a9a87chttps://github.com/python/cpython/pull/122289/commits/7a9a87ce23a5599274a5426ac7103d001eb6c073
https://github.com/python/cpython/tree/7a9a87ce23a5599274a5426ac7103d001eb6c073
Update Misc/NEWS.d/next/Library/2024-07-25-18-06-51.gh-issue-122288.-_xxOR.rsthttps://github.com/python/cpython/pull/122289/commits/90539bcd17d3bb3eaf65cbfa18be236a88accc94
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
90539bchttps://github.com/python/cpython/pull/122289/commits/90539bcd17d3bb3eaf65cbfa18be236a88accc94
https://github.com/python/cpython/tree/90539bcd17d3bb3eaf65cbfa18be236a88accc94
use lower-case parameter nameshttps://github.com/python/cpython/pull/122289/commits/1d52949cc8300437001c8342cb27441f1d8e3cbe
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
1d52949https://github.com/python/cpython/pull/122289/commits/1d52949cc8300437001c8342cb27441f1d8e3cbe
https://github.com/python/cpython/tree/1d52949cc8300437001c8342cb27441f1d8e3cbe
rename variable `indices` to `star_indices`https://github.com/python/cpython/pull/122289/commits/02264371c101929b1e7774ce0c103127887c0bb2
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
0226437https://github.com/python/cpython/pull/122289/commits/02264371c101929b1e7774ce0c103127887c0bb2
https://github.com/python/cpython/tree/02264371c101929b1e7774ce0c103127887c0bb2
remove ambiguous comment about '?' casehttps://github.com/python/cpython/pull/122289/commits/01a51734dcd8031935432fb36997353e764fd616
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
01a5173https://github.com/python/cpython/pull/122289/commits/01a51734dcd8031935432fb36997353e764fd616
https://github.com/python/cpython/tree/01a51734dcd8031935432fb36997353e764fd616
change the cache size for `re.escape`https://github.com/python/cpython/pull/122289/commits/bb6c3eef37c79f7544e2d5c38c6f7ee19417ad52
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
bb6c3eehttps://github.com/python/cpython/pull/122289/commits/bb6c3eef37c79f7544e2d5c38c6f7ee19417ad52
https://github.com/python/cpython/tree/bb6c3eef37c79f7544e2d5c38c6f7ee19417ad52
Update Lib/fnmatch.pyhttps://github.com/python/cpython/pull/122289/commits/c14ce4f7abc18ca5c427c1c3da4d4131f3f3984e
picnixzhttps://github.com/python/cpython/commits?author=picnixz
barneygalehttps://github.com/python/cpython/commits?author=barneygale
c14ce4fhttps://github.com/python/cpython/pull/122289/commits/c14ce4f7abc18ca5c427c1c3da4d4131f3f3984e
https://github.com/python/cpython/tree/c14ce4f7abc18ca5c427c1c3da4d4131f3f3984e
Update Lib/test/test_fnmatch.pyhttps://github.com/python/cpython/pull/122289/commits/38d342701d84370b2b2f713934f848d153f091ac
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
38d3427https://github.com/python/cpython/pull/122289/commits/38d342701d84370b2b2f713934f848d153f091ac
https://github.com/python/cpython/tree/38d342701d84370b2b2f713934f848d153f091ac
Merge branch 'main' into fnmatch-py-implementationhttps://github.com/python/cpython/pull/122289/commits/78fde7a854eb8f704ff6f7e426dc6f2f1f0017f0
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
78fde7ahttps://github.com/python/cpython/pull/122289/commits/78fde7a854eb8f704ff6f7e426dc6f2f1f0017f0
https://github.com/python/cpython/tree/78fde7a854eb8f704ff6f7e426dc6f2f1f0017f0
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.