René's URL Explorer Experiment


Title: gh-130167: Improve speed of `inspect.formatannotation` by replacing `re` by donbarbos · Pull Request #130242 · python/cpython · GitHub

Open Graph Title: gh-130167: Improve speed of `inspect.formatannotation` by replacing `re` by donbarbos · Pull Request #130242 · python/cpython

X Title: gh-130167: Improve speed of `inspect.formatannotation` by replacing `re` by donbarbos · Pull Request #130242 · python/cpython

Description: timeit benchmark with my script: inspect_bench.py: import re import timeit from typing import List, Dict, Any, Union def old_format_annotation(annotation): if getattr(annotation, "__module__",...

Open Graph Description: timeit benchmark with my script: inspect_bench.py: import re import timeit from typing import List, Dict, Any, Union def old_format_annotation(annotation): if getattr(annotation, "__modul...

X Description: timeit benchmark with my script: inspect_bench.py: import re import timeit from typing import List, Dict, Any, Union def old_format_annotation(annotation): if getattr(annotation, "__m...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:3c36f616-5687-a517-6d92-9f9a257c7a04
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA4F8:24CD64:77625A:A27492:696AB2A6
html-safe-nonce4425ca46a978e76edfbdf67006ee17680191afd2a995751beac3e7f6710c136a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEY4OjI0Q0Q2NDo3NzYyNUE6QTI3NDkyOjY5NkFCMkE2IiwidmlzaXRvcl9pZCI6IjkxMDIyMDI2NDAzMTE5NTYxMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd3bd3aad23ee1ad518a5ec40fb188827d61bb2e0abdc1f8163a908c384673aff
hovercard-subject-tagpull_request:2340808632
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/130242/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e290933f5c7729675119fded0b932b285472290996ed048d106e53be36b63050/python/cpython/pull/130242
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e290933f5c7729675119fded0b932b285472290996ed048d106e53be36b63050/python/cpython/pull/130242
og:image:alttimeit benchmark with my script: inspect_bench.py: import re import timeit from typing import List, Dict, Any, Union def old_format_annotation(annotation): if getattr(annotation, "__modul...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedonbarbos
hostnamegithub.com
expected-hostnamegithub.com
None4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b
turbo-cache-controlno-preview
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
release41f276818bd204c4a30a0281fb3c576298d9474c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/130242#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130242
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130242
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/130242
Reloadhttps://github.com/python/cpython/pull/130242
Reloadhttps://github.com/python/cpython/pull/130242
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/130242
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/130242
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/130242#issue-comment-box
donbarboshttps://github.com/donbarbos
python:mainhttps://github.com/python/cpython/tree/main
donbarbos:improve-inspect-speedhttps://github.com/donbarbos/cpython/tree/improve-inspect-speed
gh-130167: Improve speed of inspect.formatannotation by replacing re https://github.com/python/cpython/pull/130242#top
donbarboshttps://github.com/donbarbos
python:mainhttps://github.com/python/cpython/tree/main
donbarbos:improve-inspect-speedhttps://github.com/donbarbos/cpython/tree/improve-inspect-speed
Conversation 6 https://github.com/python/cpython/pull/130242
Commits 8 https://github.com/python/cpython/pull/130242/commits
Checks 35 https://github.com/python/cpython/pull/130242/checks
Files changed https://github.com/python/cpython/pull/130242/files
Please reload this pagehttps://github.com/python/cpython/pull/130242
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/donbarbos
donbarboshttps://github.com/donbarbos
Feb 18, 2025https://github.com/python/cpython/pull/130242#issue-2859035491
Please reload this pagehttps://github.com/python/cpython/pull/130242
Improve speed of stdlib functions by replacing re uses #130167https://github.com/python/cpython/issues/130167
Please reload this pagehttps://github.com/python/cpython/pull/130242
https://github.com/donbarbos
Improve speed of inspect.formatannotation by replacing rehttps://github.com/python/cpython/pull/130242/commits/ef19ae67fc2b65bebd0095dfb7b800782254a89d
ef19ae6https://github.com/python/cpython/pull/130242/commits/ef19ae67fc2b65bebd0095dfb7b800782254a89d
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Feb 18, 2025https://github.com/python/cpython/pull/130242#event-16340218341
https://github.com/donbarbos
donbarboshttps://github.com/donbarbos
Feb 18, 2025https://github.com/python/cpython/pull/130242#event-16340254024
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Feb 18, 2025 https://github.com/python/cpython/pull/130242#ref-issue-2855818065
Improve speed of stdlib functions by replacing re uses #130167 https://github.com/python/cpython/issues/130167
donbarboshttps://github.com/donbarbos
February 18, 2025 04:54https://github.com/python/cpython/pull/130242#commits-pushed-7dc08b7
https://github.com/donbarbos
Merge branch 'main' into improve-inspect-speedhttps://github.com/python/cpython/pull/130242/commits/7dc08b7385a8c3f2f554e9836220f2a930d3f449
7dc08b7https://github.com/python/cpython/pull/130242/commits/7dc08b7385a8c3f2f554e9836220f2a930d3f449
https://github.com/donbarbos
Add blurbhttps://github.com/python/cpython/pull/130242/commits/d9480c74108943493f7047d5190b67181bba6795
d9480c7https://github.com/python/cpython/pull/130242/commits/d9480c74108943493f7047d5190b67181bba6795
https://github.com/donbarbos
Update NEWS.d entry markuphttps://github.com/python/cpython/pull/130242/commits/ab852415efe9e6690d75303047e793bf5be9a80a
ab85241https://github.com/python/cpython/pull/130242/commits/ab852415efe9e6690d75303047e793bf5be9a80a
https://github.com/donbarbos
Merge branch 'main' into improve-inspect-speedhttps://github.com/python/cpython/pull/130242/commits/f48b2edc5d1455c650ff6317039c10ec5c63f2be
f48b2edhttps://github.com/python/cpython/pull/130242/commits/f48b2edc5d1455c650ff6317039c10ec5c63f2be
https://github.com/donbarbos
Update rst syntax in News entryhttps://github.com/python/cpython/pull/130242/commits/3c1c4b74205652b59804bf27f81caa6824715b85
3c1c4b7https://github.com/python/cpython/pull/130242/commits/3c1c4b74205652b59804bf27f81caa6824715b85
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Mar 27, 2025 https://github.com/python/cpython/pull/130242#pullrequestreview-2721622446
View reviewed changes https://github.com/python/cpython/pull/130242/files/3c1c4b74205652b59804bf27f81caa6824715b85
Misc/NEWS.d/next/Library/2025-02-18-05-04-13.gh-issue-130167.aOgAz_.rsthttps://github.com/python/cpython/pull/130242/files/ab852415efe9e6690d75303047e793bf5be9a80a#diff-0333c64cd3b74587c7a48e53ac521c089eab1ee91b0e637e4fa1a97bc75e5d7a
Please reload this pagehttps://github.com/python/cpython/pull/130242
donbarboshttps://github.com/donbarbos
March 28, 2025 01:58https://github.com/python/cpython/pull/130242#commits-pushed-1bfbe05
https://github.com/donbarbos
https://github.com/hugovk
Update 2025-02-18-05-04-13.gh-issue-130167.aOgAz_.rsthttps://github.com/python/cpython/pull/130242/commits/1bfbe05fd1057fc5dfa3fcba44332f15db37d90b
1bfbe05https://github.com/python/cpython/pull/130242/commits/1bfbe05fd1057fc5dfa3fcba44332f15db37d90b
https://github.com/donbarbos
Remove implementation detail from News entryhttps://github.com/python/cpython/pull/130242/commits/0ecf16f063afc6760cc625d7270f4381d72248c4
0ecf16fhttps://github.com/python/cpython/pull/130242/commits/0ecf16f063afc6760cc625d7270f4381d72248c4
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
May 1, 2025 https://github.com/python/cpython/pull/130242#pullrequestreview-2809370943
View reviewed changes https://github.com/python/cpython/pull/130242/files/0ecf16f063afc6760cc625d7270f4381d72248c4
AA-Turnerhttps://github.com/AA-Turner
https://github.com/python/cpython/pull/130242#pullrequestreview-2809370943
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/130242
https://github.com/donbarbos
donbarboshttps://github.com/donbarbos
May 1, 2025https://github.com/python/cpython/pull/130242#issuecomment-2844902774
Please reload this pagehttps://github.com/python/cpython/pull/130242
Please reload this pagehttps://github.com/python/cpython/pull/130242
https://github.com/Engelbarts
Engelbartshttps://github.com/Engelbarts
Sep 3, 2025https://github.com/python/cpython/pull/130242#issuecomment-3251135151
Please reload this pagehttps://github.com/python/cpython/pull/130242
https://github.com/donbarbos
donbarboshttps://github.com/donbarbos
AA-Turnerhttps://github.com/AA-Turner
October 22, 2025 13:49https://github.com/python/cpython/pull/130242#event-20431848524
https://github.com/charmander
charmanderhttps://github.com/charmander
Nov 27, 2025https://github.com/python/cpython/pull/130242#issuecomment-3587314625
Please reload this pagehttps://github.com/python/cpython/pull/130242
Please reload this pagehttps://github.com/python/cpython/pull/130242
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130242
https://github.com/hugovk
hugovk https://github.com/hugovk
https://github.com/python/cpython/pull/130242/files/3c1c4b74205652b59804bf27f81caa6824715b85
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/130242
https://github.com/donbarbos
https://github.com/Engelbarts
https://github.com/charmander
https://github.com/hugovk
https://github.com/AA-Turner
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.