René's URL Explorer Experiment


Title: Defer imports for faster overall import time: 19 ms -> 5 ms by hugovk · Pull Request #234 · python-humanize/humanize · GitHub

Open Graph Title: Defer imports for faster overall import time: 19 ms -> 5 ms by hugovk · Pull Request #234 · python-humanize/humanize

X Title: Defer imports for faster overall import time: 19 ms -> 5 ms by hugovk · Pull Request #234 · python-humanize/humanize

Description: Python humanize functions. Contribute to python-humanize/humanize development by creating an account on GitHub.

Open Graph Description: Defer imports, especially avoid typing import for normal use, which is getting slower in 3.14, to make the overall import time of humanize faster. Before: 19 ms After: 5 ms Also move mypy depende...

X Description: Defer imports, especially avoid typing import for normal use, which is getting slower in 3.14, to make the overall import time of humanize faster. Before: 19 ms After: 5 ms Also move mypy depende...

Opengraph URL: https://github.com/python-humanize/humanize/pull/234

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:a102fcae-8e4e-71ab-327f-fcf4e0003cfb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD6B2:24BC9A:21C4CD5:2CFA804:6A5468D7
html-safe-nonce7550bb95cb6fa085b5cb25b412935d8e0659f3ebb54554c838aaf0d5468a1c48
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkIyOjI0QkM5QToyMUM0Q0Q1OjJDRkE4MDQ6NkE1NDY4RDciLCJ2aXNpdG9yX2lkIjoiMTc3MjM2MzYzMjgwNzc5ODk5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac575fc38d1d0401d46309d5a79518410a7732152b4e1117551ff4ff0b811c9e79
hovercard-subject-tagpull_request:2332416765
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-humanize/humanize/234/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cf38747d70f1d575ba394e8e3d019efa89f3360e33802ba751f2febcacf6180f/python-humanize/humanize/pull/234
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf38747d70f1d575ba394e8e3d019efa89f3360e33802ba751f2febcacf6180f/python-humanize/humanize/pull/234
og:image:altDefer imports, especially avoid typing import for normal use, which is getting slower in 3.14, to make the overall import time of humanize faster. Before: 19 ms After: 5 ms Also move mypy depende...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehugovk
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git
octolytics-dimension-user_id62149795
octolytics-dimension-user_loginpython-humanize
octolytics-dimension-repository_id466683324
octolytics-dimension-repository_nwopython-humanize/humanize
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id466683324
octolytics-dimension-repository_network_root_nwopython-humanize/humanize
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
release6d28624802c2f7d9500239dd6870ed7031b7353b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-humanize/humanize/pull/234#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F234
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-humanize%2Fhumanize%2Fpull%2F234
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-humanize%2Fhumanize
Reloadhttps://github.com/python-humanize/humanize/pull/234
Reloadhttps://github.com/python-humanize/humanize/pull/234
Reloadhttps://github.com/python-humanize/humanize/pull/234
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
python-humanize https://github.com/python-humanize
humanizehttps://github.com/python-humanize/humanize
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
Notifications https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Fork 115 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Star 736 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Code https://github.com/python-humanize/humanize
Issues 12 https://github.com/python-humanize/humanize/issues
Pull requests 12 https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality 0 https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
Code https://github.com/python-humanize/humanize
Issues https://github.com/python-humanize/humanize/issues
Pull requests https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
hugovkhttps://github.com/hugovk
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
hugovk:mypyhttps://github.com/hugovk/humanize/tree/mypy
Conversationhttps://github.com/python-humanize/humanize/pull/234
Commits3 (3)https://github.com/python-humanize/humanize/pull/234/commits
Checkshttps://github.com/python-humanize/humanize/pull/234/checks
Files changedhttps://github.com/python-humanize/humanize/pull/234/files
Defer imports for faster overall import time: 19 ms -> 5 mshttps://github.com/python-humanize/humanize/pull/234#top
hugovkhttps://github.com/hugovk
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
hugovk:mypyhttps://github.com/hugovk/humanize/tree/mypy
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Feb 12, 2025https://github.com/python-humanize/humanize/pull/234#issue-2849476460
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
https://private-user-images.githubusercontent.com/1324225/412635086-0e6a6210-4d07-4d55-b31f-230a3befed31.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM5MTcwNjAsIm5iZiI6MTc4MzkxNjc2MCwicGF0aCI6Ii8xMzI0MjI1LzQxMjYzNTA4Ni0wZTZhNjIxMC00ZDA3LTRkNTUtYjMxZi0yMzBhM2JlZmVkMzEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDcxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA3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github.com/python-humanize/humanize/pull/234
hugovkhttps://github.com/hugovk
February 12, 2025 23:52https://github.com/python-humanize/humanize/pull/234#commits-pushed-b2562da
https://github.com/hugovk
Move mypy dependency to autoupdateable requirements filehttps://github.com/python-humanize/humanize/pull/234/commits/b2562da2f74f1a46a316bf0f03c052747a6d10c1
b2562dahttps://github.com/python-humanize/humanize/pull/234/commits/b2562da2f74f1a46a316bf0f03c052747a6d10c1
https://github.com/hugovk
Defer typing import for faster overall importhttps://github.com/python-humanize/humanize/pull/234/commits/9e0c073be886b4a1e93db38f18ac9939482ac12f
9e0c073https://github.com/python-humanize/humanize/pull/234/commits/9e0c073be886b4a1e93db38f18ac9939482ac12f
https://github.com/hugovk
Defer other imports for faster overall importhttps://github.com/python-humanize/humanize/pull/234/commits/147cbbcb9400ad2428bed232fbb4ea95d68ca895
147cbbchttps://github.com/python-humanize/humanize/pull/234/commits/147cbbcb9400ad2428bed232fbb4ea95d68ca895
https://github.com/hugovk
hugovkhttps://github.com/hugovk
changelog: Changed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Changed%22
Feb 12, 2025https://github.com/python-humanize/humanize/pull/234#event-16287847018
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Feb 12, 2025https://github.com/python-humanize/humanize/pull/234#issuecomment-2654974969
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
Codecovhttps://app.codecov.io/gh/python-humanize/humanize/pull/234?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
(c6455cf)https://app.codecov.io/gh/python-humanize/humanize/commit/c6455cfee2eef8c4ee2ed2f3b91613251046df7a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
(147cbbc)https://app.codecov.io/gh/python-humanize/humanize/commit/147cbbcb9400ad2428bed232fbb4ea95d68ca895?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Flaghttps://app.codecov.io/gh/python-humanize/humanize/pull/234/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
macos-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/234/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
ubuntu-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/234/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
windows-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/234/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/python-humanize/humanize/pull/234?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Test Analyticshttps://docs.codecov.com/docs/test-analytics
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Feb 13, 2025https://github.com/python-humanize/humanize/pull/234#event-16291778322
https://github.com/hugovk
hugovkhttps://github.com/hugovk
13f71a3https://github.com/python-humanize/humanize/commit/13f71a36deb0d0f46e7c53fdbf48ef2f5f603913
Feb 13, 2025https://github.com/python-humanize/humanize/pull/234#event-16291780577
https://github.com/hugovk
hugovkhttps://github.com/hugovk
February 13, 2025 07:21https://github.com/python-humanize/humanize/pull/234#event-16291781236
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Feb 14, 2025 https://github.com/python-humanize/humanize/pull/234#ref-pullrequest-2853917060
Defer imports for faster overall import time: 5 ms -> 3 ms #238 https://github.com/python-humanize/humanize/pull/238
https://github.com/glensc
glenschttps://github.com/glensc
Mar 5, 2025https://github.com/python-humanize/humanize/pull/234#issuecomment-2700594157
@hugovkhttps://github.com/hugovk
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Mar 5, 2025https://github.com/python-humanize/humanize/pull/234#issuecomment-2700628714
https://github.com/nschloe/tunahttps://github.com/nschloe/tuna
https://medium.com/alan/how-we-improved-our-python-backend-start-up-time-2c33cd4873c8https://medium.com/alan/how-we-improved-our-python-backend-start-up-time-2c33cd4873c8
https://github.com/sharkdp/hyperfinehttps://github.com/sharkdp/hyperfine
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
https://github.com/glensc
glenschttps://github.com/glensc
Mar 17, 2025 https://github.com/python-humanize/humanize/pull/234#ref-issue-2925128659
Feature request: Optimize pythion imports Taxel/PlexTraktSync#2209 https://github.com/Taxel/PlexTraktSync/issues/2209
https://github.co/hiddenchars
https://github.com/python-humanize/humanize/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-humanize%2Fhumanize%2Fpull%2F234
changelog: Changed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Changed%22
Please reload this pagehttps://github.com/python-humanize/humanize/pull/234
https://github.com/hugovk
https://github.com/glensc
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.