René's URL Explorer Experiment


Title: gh-118761: Optimise import time for ast by AA-Turner · Pull Request #131953 · python/cpython · GitHub

Open Graph Title: gh-118761: Optimise import time for ast by AA-Turner · Pull Request #131953 · python/cpython

X Title: gh-118761: Optimise import time for ast by AA-Turner · Pull Request #131953 · python/cpython

Description: Attempting @JelleZijlstra's suggestion in #118761 (comment). Running python -Ximporttime -Sc "import ast" ten times with the current and proposed modules, I get 14.1ms for the current module and 1...

Open Graph Description: Attempting @JelleZijlstra's suggestion in #118761 (comment). Running python -Ximporttime -Sc "import ast" ten times with the current and proposed modules, I get 14.1ms for the curren...

X Description: Attempting @JelleZijlstra's suggestion in #118761 (comment). Running python -Ximporttime -Sc "import ast" ten times with the current and proposed modules, I get 14.1ms fo...

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

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:1b6fa85e-ad87-2f28-bd79-650373a15b9e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC52:A457C:A1FE4D:D78A16:69699219
html-safe-noncee3988b3ceba11c96e987792bf882d8adbf55d5088a87bcdbab1522dc039efeee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzUyOkE0NTdDOkExRkU0RDpENzhBMTY6Njk2OTkyMTkiLCJ2aXNpdG9yX2lkIjoiODY3MzY2NDM3MTMxODY5MDMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac881fd14d8f0def7a5b804dbb4eb4e7131e44e5117768de247f763b9bd186c18d
hovercard-subject-tagpull_request:2429625247
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/131953/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9d4956c6fa5497833b5d8f22051d94dd7a50c4854de17723a9968295e93bc1c1/python/cpython/pull/131953
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9d4956c6fa5497833b5d8f22051d94dd7a50c4854de17723a9968295e93bc1c1/python/cpython/pull/131953
og:image:altAttempting @JelleZijlstra's suggestion in #118761 (comment). Running python -Ximporttime -Sc "import ast" ten times with the current and proposed modules, I get 14.1ms for the curren...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAA-Turner
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/131953#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F131953
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%2F131953
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/131953
Reloadhttps://github.com/python/cpython/pull/131953
Reloadhttps://github.com/python/cpython/pull/131953
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/131953
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/131953
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/131953#issue-comment-box
AA-Turnerhttps://github.com/AA-Turner
python:mainhttps://github.com/python/cpython/tree/main
AA-Turner:opt-asthttps://github.com/AA-Turner/cpython/tree/opt-ast
gh-118761: Optimise import time for ast https://github.com/python/cpython/pull/131953#top
AA-Turnerhttps://github.com/AA-Turner
python:mainhttps://github.com/python/cpython/tree/main
AA-Turner:opt-asthttps://github.com/AA-Turner/cpython/tree/opt-ast
Conversation 14 https://github.com/python/cpython/pull/131953
Commits 5 https://github.com/python/cpython/pull/131953/commits
Checks 46 https://github.com/python/cpython/pull/131953/checks
Files changed 6 https://github.com/python/cpython/pull/131953/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Mar 31, 2025https://github.com/python/cpython/pull/131953#issue-2961249566
Please reload this pagehttps://github.com/python/cpython/pull/131953
@JelleZijlstrahttps://github.com/JelleZijlstra
#118761 (comment)https://github.com/python/cpython/issues/118761#issuecomment-2766771485
Improve import time of various stdlib modules #118761https://github.com/python/cpython/issues/118761
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/AA-Turner
Optimise import time for asthttps://github.com/python/cpython/pull/131953/commits/1629db74705dc9ea1f941d50f0b9384d155e1fcf
1629db7https://github.com/python/cpython/pull/131953/commits/1629db74705dc9ea1f941d50f0b9384d155e1fcf
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Eclips4https://github.com/Eclips4
JelleZijlstrahttps://github.com/JelleZijlstra
isidenticalhttps://github.com/isidentical
code ownershttps://github.com/python/cpython/blob/0cd4befb02df07c0b320cd6246227c13e57b2efb/.github/CODEOWNERS#L190
March 31, 2025 18:28https://github.com/python/cpython/pull/131953#event-17062011230
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 31, 2025https://github.com/python/cpython/pull/131953#event-17062012198
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 31, 2025 https://github.com/python/cpython/pull/131953#ref-issue-2285570381
Improve import time of various stdlib modules #118761 https://github.com/python/cpython/issues/118761
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
skip issue https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22
skip issue https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22
Mar 31, 2025https://github.com/python/cpython/pull/131953#event-17062017745
https://github.com/AA-Turner
fixup! Optimise import time for asthttps://github.com/python/cpython/pull/131953/commits/dc95d19556bf741572286c9402265a4e6949219d
dc95d19https://github.com/python/cpython/pull/131953/commits/dc95d19556bf741572286c9402265a4e6949219d
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
ezio-melottihttps://github.com/ezio-melotti
hugovkhttps://github.com/hugovk
code ownershttps://github.com/python/cpython/blob/2e96f5ae4d1700d77a53180b4866c5b9f002e62d/.github/CODEOWNERS#L8
March 31, 2025 19:35https://github.com/python/cpython/pull/131953#event-17062874991
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
ezio-melottihttps://github.com/ezio-melotti
hugovkhttps://github.com/hugovk
March 31, 2025 19:43https://github.com/python/cpython/pull/131953#event-17062963503
https://github.com/AA-Turner
Add private unparse names to getattrhttps://github.com/python/cpython/pull/131953/commits/460491e5d14510ad9fc59a8bbce5a1aa8a15e2b2
460491ehttps://github.com/python/cpython/pull/131953/commits/460491e5d14510ad9fc59a8bbce5a1aa8a15e2b2
https://github.com/danielhollas
danielhollashttps://github.com/danielhollas
Apr 1, 2025 https://github.com/python/cpython/pull/131953#pullrequestreview-2731003064
View reviewed changes https://github.com/python/cpython/pull/131953/files/dc95d19556bf741572286c9402265a4e6949219d
Lib/_ast_unparse.pyhttps://github.com/python/cpython/pull/131953/files/dc95d19556bf741572286c9402265a4e6949219d#diff-94bc0f4c091ddd0d30b3171f77a68f33b09697ea7ba9df5b0b6c3d3d5a176a4d
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/AA-Turner
Define module level __dir__https://github.com/python/cpython/pull/131953/commits/d88eb24b2e5c1e81ed393f604590304dfcc47002
d88eb24https://github.com/python/cpython/pull/131953/commits/d88eb24b2e5c1e81ed393f604590304dfcc47002
https://github.com/eli-schwartz
eli-schwartzhttps://github.com/eli-schwartz
Apr 1, 2025https://github.com/python/cpython/pull/131953#issuecomment-2768034992
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 1, 2025 https://github.com/python/cpython/pull/131953#pullrequestreview-2731046152
View reviewed changes https://github.com/python/cpython/pull/131953/files/d88eb24b2e5c1e81ed393f604590304dfcc47002
JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/python/cpython/pull/131953#pullrequestreview-2731046152
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/AA-Turner
Revert "Add private unparse names to getattr"https://github.com/python/cpython/pull/131953/commits/a5463286921a91a25ea7c9f9d72aa8fcde57f4e2
a546328https://github.com/python/cpython/pull/131953/commits/a5463286921a91a25ea7c9f9d72aa8fcde57f4e2
460491ehttps://github.com/AA-Turner/cpython/commit/460491e5d14510ad9fc59a8bbce5a1aa8a15e2b2
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Apr 1, 2025https://github.com/python/cpython/pull/131953#issuecomment-2768052601
no resultshttps://github.com/search?q=Path%3A_ast_unparse.py&type=code
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 2, 2025 https://github.com/python/cpython/pull/131953#pullrequestreview-2736824235
View reviewed changes https://github.com/python/cpython/pull/131953/files/a5463286921a91a25ea7c9f9d72aa8fcde57f4e2
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 2, 2025https://github.com/python/cpython/pull/131953#event-17096907394
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
f20f02ehttps://github.com/python/cpython/commit/f20f02e6b586d5e497a1da2912930203b3469c17
Apr 2, 2025https://github.com/python/cpython/pull/131953#event-17097363566
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Apr 2, 2025https://github.com/python/cpython/pull/131953#event-17097364239
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
April 2, 2025 16:22https://github.com/python/cpython/pull/131953#event-17097364507
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773110636
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Apr 2, 2025https://github.com/python/cpython/pull/131953#event-17097383675
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773119288
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773122676
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773132213
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/danielhollas
danielhollashttps://github.com/danielhollas
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773154798
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/danielhollas
danielhollashttps://github.com/danielhollas
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773187078
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773187089
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773250329
#132024https://github.com/python/cpython/pull/132024
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 2, 2025https://github.com/python/cpython/pull/131953#issuecomment-2773285068
#132025https://github.com/python/cpython/pull/132025
Please reload this pagehttps://github.com/python/cpython/pull/131953
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%2F131953
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/cpython/pull/131953/files/a5463286921a91a25ea7c9f9d72aa8fcde57f4e2
https://github.com/isidentical
isidentical https://github.com/isidentical
https://github.com/Eclips4
Eclips4 https://github.com/Eclips4
https://github.com/danielhollas
danielhollas https://github.com/danielhollas
https://github.com/python/cpython/pull/131953/files/dc95d19556bf741572286c9402265a4e6949219d
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Please reload this pagehttps://github.com/python/cpython/pull/131953
https://github.com/AA-Turner
https://github.com/eli-schwartz
https://github.com/vstinner
https://github.com/danielhollas
https://github.com/JelleZijlstra
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.