René's URL Explorer Experiment


Title: bpo-32403: Faster date and datetime constructors by pganssle · Pull Request #4993 · python/cpython · GitHub

Open Graph Title: bpo-32403: Faster date and datetime constructors by pganssle · Pull Request #4993 · python/cpython

X Title: bpo-32403: Faster date and datetime constructors by pganssle · Pull Request #4993 · python/cpython

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

Open Graph Description: This fixes bpo-32403 and bpo-32404. The first one is a performance enhancement, the second is a bugfix. Using this script to benchmark the alternate constructors, I see significant improvements in ...

X Description: This fixes bpo-32403 and bpo-32404. The first one is a performance enhancement, the second is a bugfix. Using this script to benchmark the alternate constructors, I see significant improvements in ...

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

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:78b9e77e-653d-f168-848d-95a9019ef006
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8504:1EA4:2C8FE6D:3FF5FCA:6A4FC553
html-safe-nonce799408385bff82da27e995347411135ef81f2be1930bc2a889ded19656721404
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTA0OjFFQTQ6MkM4RkU2RDozRkY1RkNBOjZBNEZDNTUzIiwidmlzaXRvcl9pZCI6IjY2MzU4Nzc4ODE3NDU0OTEyODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfd9628271113001bd274827efa161e3f557a73811a6b920440bdc54d340e3731
hovercard-subject-tagpull_request:159978497
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/4993/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fc3e2d152485de13d0f8b4bd5c97b371e613ba59a8b918ef86e3fa017b193f3e/python/cpython/pull/4993
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fc3e2d152485de13d0f8b4bd5c97b371e613ba59a8b918ef86e3fa017b193f3e/python/cpython/pull/4993
og:image:altThis fixes bpo-32403 and bpo-32404. The first one is a performance enhancement, the second is a bugfix. Using this script to benchmark the alternate constructors, I see significant improvements in ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepganssle
hostnamegithub.com
expected-hostnamegithub.com
None60b2ae4c725f51e2dac275d0ac5e9233e5967a61cdfaebd732f63da67ff1b71c
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
release06fb64e1cb36b9a7a2e3f0e6c14af40ef9f439d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/4993#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4993
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F4993
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/4993
Reloadhttps://github.com/python/cpython/pull/4993
Reloadhttps://github.com/python/cpython/pull/4993
Please reload this pagehttps://github.com/python/cpython/pull/4993
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/4993
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
abalkinhttps://github.com/abalkin
python:masterhttps://github.com/python/cpython/tree/master
pganssle:faster_datetime_constructorshttps://github.com/pganssle/cpython/tree/faster_datetime_constructors
Conversationhttps://github.com/python/cpython/pull/4993
Commits6 (6)https://github.com/python/cpython/pull/4993/commits
Checkshttps://github.com/python/cpython/pull/4993/checks
Files changedhttps://github.com/python/cpython/pull/4993/files
bpo-32403: Faster date and datetime constructorshttps://github.com/python/cpython/pull/4993#top
abalkinhttps://github.com/abalkin
python:masterhttps://github.com/python/cpython/tree/master
pganssle:faster_datetime_constructorshttps://github.com/pganssle/cpython/tree/faster_datetime_constructors
https://github.com/pganssle
pgansslehttps://github.com/pganssle
Dec 23, 2017https://github.com/python/cpython/pull/4993#issue-284324124
Please reload this pagehttps://github.com/python/cpython/pull/4993
bpo-32403https://bugs.python.org/issue32403
bpo-32404https://bugs.python.org/issue32404
this script to benchmark the alternate constructorshttps://gist.github.com/pganssle/15875840f31be893e7c98958730657bb
https://bugs.python.org/issue32403https://bugs.python.org/issue32403
Please reload this pagehttps://github.com/python/cpython/pull/4993
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Dec 23, 2017https://github.com/python/cpython/pull/4993#event-1400474510
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Dec 23, 2017https://github.com/python/cpython/pull/4993#event-1400474511
https://github.com/pganssle
pgansslehttps://github.com/pganssle
Dec 24, 2017 https://github.com/python/cpython/pull/4993#pullrequestreview-85446339
View reviewed changes https://github.com/python/cpython/pull/4993/files
Modules/_datetimemodule.chttps://github.com/python/cpython/pull/4993/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
pgansslehttps://github.com/pganssle
Dec 24, 2017https://github.com/python/cpython/pull/4993#discussion_r158607137
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4993
abalkinhttps://github.com/abalkin
Jan 9, 2018https://github.com/python/cpython/pull/4993#discussion_r160482598
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4993
https://github.com/abalkin
abalkinhttps://github.com/abalkin
Jan 12, 2018 https://github.com/python/cpython/pull/4993#pullrequestreview-87607715
View reviewed changes https://github.com/python/cpython/pull/4993/files
Modules/_datetimemodule.chttps://github.com/python/cpython/pull/4993/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
abalkinhttps://github.com/abalkin
Jan 9, 2018https://github.com/python/cpython/pull/4993#discussion_r160482472
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4993
Modules/_datetimemodule.chttps://github.com/python/cpython/pull/4993/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
abalkinhttps://github.com/abalkin
Jan 9, 2018https://github.com/python/cpython/pull/4993#discussion_r160482598
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4993
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jan 12, 2018https://github.com/python/cpython/pull/4993#issuecomment-357310957
Please reload this pagehttps://github.com/python/cpython/pull/4993
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jan 12, 2018https://github.com/python/cpython/pull/4993#event-1422246749
https://github.com/abalkin
abalkinhttps://github.com/abalkin
Jan 12, 2018https://github.com/python/cpython/pull/4993#event-1422284775
https://github.com/pganssle
pgansslehttps://github.com/pganssle
force-pushedhttps://github.com/python/cpython/compare/6c6115c2d9245f2595a9b097989c695f75b65f1c..92ac0c4622a49330b1bd4e8681188e53a0df9f30
6c6115chttps://github.com/python/cpython/commit/6c6115c2d9245f2595a9b097989c695f75b65f1c
92ac0c4https://github.com/python/cpython/commit/92ac0c4622a49330b1bd4e8681188e53a0df9f30
Compare https://github.com/python/cpython/compare/6c6115c2d9245f2595a9b097989c695f75b65f1c..92ac0c4622a49330b1bd4e8681188e53a0df9f30
January 13, 2018 17:36https://github.com/python/cpython/pull/4993#event-1423042873
pgansslehttps://github.com/pganssle
January 13, 2018 12:37https://github.com/python/cpython/pull/4993#commits-pushed-5147013
https://github.com/pganssle
Add tests for date subclass alternate constructorshttps://github.com/python/cpython/pull/4993/commits/5147013cda578044dfa8eff318a424bb1896bd85
5147013https://github.com/python/cpython/pull/4993/commits/5147013cda578044dfa8eff318a424bb1896bd85
https://github.com/pganssle
Switch over alternate date constructors to fast pathhttps://github.com/python/cpython/pull/4993/commits/587986718781a4156195d413eac1c208a7d64403
5879867https://github.com/python/cpython/pull/4993/commits/587986718781a4156195d413eac1c208a7d64403
https://github.com/pganssle
Switch datetime constructors to fastpath, fix bpo-32404https://github.com/python/cpython/pull/4993/commits/2e47897470eab878649f0675df0d4588f7589e65
2e47897https://github.com/python/cpython/pull/4993/commits/2e47897470eab878649f0675df0d4588f7589e65
https://github.com/pganssle
Add fast path for datetime in date subclass constructorhttps://github.com/python/cpython/pull/4993/commits/a64e9675abf35d07bb38f314b53ddce17aa2b91d
a64e967https://github.com/python/cpython/pull/4993/commits/a64e9675abf35d07bb38f314b53ddce17aa2b91d
https://github.com/pganssle
Set fold in constructor in datetime.combinehttps://github.com/python/cpython/pull/4993/commits/62b52f6215e18b4d0f3122f4be6af358c099dfac
62b52f6https://github.com/python/cpython/pull/4993/commits/62b52f6215e18b4d0f3122f4be6af358c099dfac
https://github.com/pganssle
Add news entries.https://github.com/python/cpython/pull/4993/commits/b438cbec71ae203c3ed889f7cd930174ed11090a
b438cbehttps://github.com/python/cpython/pull/4993/commits/b438cbec71ae203c3ed889f7cd930174ed11090a
https://github.com/pganssle
pgansslehttps://github.com/pganssle
force-pushedhttps://github.com/python/cpython/compare/92ac0c4622a49330b1bd4e8681188e53a0df9f30..b438cbec71ae203c3ed889f7cd930174ed11090a
92ac0c4https://github.com/python/cpython/commit/92ac0c4622a49330b1bd4e8681188e53a0df9f30
b438cbehttps://github.com/python/cpython/commit/b438cbec71ae203c3ed889f7cd930174ed11090a
Compare https://github.com/python/cpython/compare/92ac0c4622a49330b1bd4e8681188e53a0df9f30..b438cbec71ae203c3ed889f7cd930174ed11090a
January 13, 2018 17:39https://github.com/python/cpython/pull/4993#event-1423043824
https://github.com/pganssle
pgansslehttps://github.com/pganssle
Jan 13, 2018https://github.com/python/cpython/pull/4993#issuecomment-357469617
@abalkinhttps://github.com/abalkin
Please reload this pagehttps://github.com/python/cpython/pull/4993
https://github.com/abalkin
abalkinhttps://github.com/abalkin
Jan 16, 2018 https://github.com/python/cpython/pull/4993#pullrequestreview-89192679
View reviewed changes https://github.com/python/cpython/pull/4993/files/b438cbec71ae203c3ed889f7cd930174ed11090a
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Jan 16, 2018https://github.com/python/cpython/pull/4993#event-1426718005
https://github.com/abalkin
abalkinhttps://github.com/abalkin
9f1b7b9https://github.com/python/cpython/commit/9f1b7b93f5f0ef589e7b272e127cacf4ce5d23f1
Jan 16, 2018https://github.com/python/cpython/pull/4993#event-1426718694
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jan 16, 2018https://github.com/python/cpython/pull/4993#event-1426718750
https://github.com/pganssle
pgansslehttps://github.com/pganssle
Feb 22, 2018 https://github.com/python/cpython/pull/4993#ref-pullrequest-299421368
bpo-10381, bpo-32403: What's new entries for changes to datetime #5814 https://github.com/python/cpython/pull/5814
https://github.com/pganssle
pgansslehttps://github.com/pganssle
October 25, 2018 14:29https://github.com/python/cpython/pull/4993#event-1926408318
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F4993
https://github.com/abalkin
abalkin https://github.com/abalkin
https://github.com/python/cpython/pull/4993/files/b438cbec71ae203c3ed889f7cd930174ed11090a
https://github.com/abalkin
abalkin https://github.com/abalkin
Please reload this pagehttps://github.com/python/cpython/pull/4993
https://github.com/pganssle
https://github.com/bedevere-bot
https://github.com/abalkin
https://github.com/the-knights-who-say-ni
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.