René's URL Explorer Experiment


Title: Performance improvements: 1.07x - 8.4x by hugovk · Pull Request #315 · python-humanize/humanize · GitHub

Open Graph Title: Performance improvements: 1.07x - 8.4x by hugovk · Pull Request #315 · python-humanize/humanize

X Title: Performance improvements: 1.07x - 8.4x by hugovk · Pull Request #315 · python-humanize/humanize

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

Open Graph Description: With this benchmark script: Details from __future__ import annotations import datetime as dt import timeit import humanize _WHEN = dt.datetime.now() - dt.timedelta(hours=3, minutes=27) _DELTA =...

X Description: With this benchmark script: Details from __future__ import annotations import datetime as dt import timeit import humanize _WHEN = dt.datetime.now() - dt.timedelta(hours=3, minutes=27) _DELTA =...

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

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:a5e42775-d7ab-7572-a8c0-46881892db68
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id978E:15E14F:2116751:2D19847:6A5417A7
html-safe-nonce068d8cd02eaf05b2753f21581391a3540cf84a4653c8674721911d598f0dd60c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzhFOjE1RTE0RjoyMTE2NzUxOjJEMTk4NDc6NkE1NDE3QTciLCJ2aXNpdG9yX2lkIjoiNzA4MjA3MzI4OTU3Mzc5OTg0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7b6fe076e306a0a55e58a3aa1dd04ae28e1eb551a398dfbfddcc01a881a827a9
hovercard-subject-tagpull_request:3695535745
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/315/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/30a55ffc0f091f53cf63067b5e4cf3ed4c22f78a4bb2e25d75efc3e212939adc/python-humanize/humanize/pull/315
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/30a55ffc0f091f53cf63067b5e4cf3ed4c22f78a4bb2e25d75efc3e212939adc/python-humanize/humanize/pull/315
og:image:altWith this benchmark script: Details from __future__ import annotations import datetime as dt import timeit import humanize _WHEN = dt.datetime.now() - dt.timedelta(hours=3, minutes=27) _DELTA =...
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-humanize/humanize/pull/315#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F315
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%2F315
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/315
Reloadhttps://github.com/python-humanize/humanize/pull/315
Reloadhttps://github.com/python-humanize/humanize/pull/315
Please reload this pagehttps://github.com/python-humanize/humanize/pull/315
python-humanize https://github.com/python-humanize
humanizehttps://github.com/python-humanize/humanize
Please reload this pagehttps://github.com/python-humanize/humanize/pull/315
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:perfhttps://github.com/hugovk/humanize/tree/perf
Conversationhttps://github.com/python-humanize/humanize/pull/315
Commits10 (10)https://github.com/python-humanize/humanize/pull/315/commits
Checkshttps://github.com/python-humanize/humanize/pull/315/checks
Files changedhttps://github.com/python-humanize/humanize/pull/315/files
Performance improvements: 1.07x - 8.4xhttps://github.com/python-humanize/humanize/pull/315#top
hugovkhttps://github.com/hugovk
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
hugovk:perfhttps://github.com/hugovk/humanize/tree/perf
https://github.com/hugovk
hugovkhttps://github.com/hugovk
May 16, 2026https://github.com/python-humanize/humanize/pull/315#issue-4461244156
Please reload this pagehttps://github.com/python-humanize/humanize/pull/315
hugovkhttps://github.com/hugovk
May 16, 2026 20:07https://github.com/python-humanize/humanize/pull/315#commits-pushed-c122312
https://github.com/hugovk
ordinal: call pgettext once instead of 10 timeshttps://github.com/python-humanize/humanize/pull/315/commits/c1223129fdc2dcfb9b0220f3d579899ca8358b2d
c122312https://github.com/python-humanize/humanize/pull/315/commits/c1223129fdc2dcfb9b0220f3d579899ca8358b2d
https://github.com/hugovk
apnumber: call gettext once instead of 10 timeshttps://github.com/python-humanize/humanize/pull/315/commits/cdc42aff71f8fc8263d333f574860f08809241ec
cdc42afhttps://github.com/python-humanize/humanize/pull/315/commits/cdc42aff71f8fc8263d333f574860f08809241ec
https://github.com/hugovk
intcomma: replace regex in while loop with format spechttps://github.com/python-humanize/humanize/pull/315/commits/55a9f8d053aec5e62b2d3e7f514476719e4d96ae
55a9f8dhttps://github.com/python-humanize/humanize/pull/315/commits/55a9f8d053aec5e62b2d3e7f514476719e4d96ae
https://github.com/hugovk
scientific: replace re.sub with int() and str.translatehttps://github.com/python-humanize/humanize/pull/315/commits/4fceafa3ba3a5385f7ee095f9665fccbcf0a6b8a
4fceafahttps://github.com/python-humanize/humanize/pull/315/commits/4fceafa3ba3a5385f7ee095f9665fccbcf0a6b8a
https://github.com/hugovk
precisedelta: move 'import math' out of loophttps://github.com/python-humanize/humanize/pull/315/commits/6c604d060d1d3d815eba3c2ec7106182c8cbf4f7
6c604d0https://github.com/python-humanize/humanize/pull/315/commits/6c604d060d1d3d815eba3c2ec7106182c8cbf4f7
https://github.com/hugovk
Replace try/except with get and getattrhttps://github.com/python-humanize/humanize/pull/315/commits/59db151f1e3abe351918852777d792dd2ce0b8b7
59db151https://github.com/python-humanize/humanize/pull/315/commits/59db151f1e3abe351918852777d792dd2ce0b8b7
https://github.com/hugovk
natural_list: use list comprehensionhttps://github.com/python-humanize/humanize/pull/315/commits/05eb187c6c83fd955ddd5a932df0eb42f468631f
05eb187https://github.com/python-humanize/humanize/pull/315/commits/05eb187c6c83fd955ddd5a932df0eb42f468631f
https://github.com/hugovk
precisedelta: avoid expensive list(Unit) lookuphttps://github.com/python-humanize/humanize/pull/315/commits/adc040da26377b4eb5fcd944579650ad5a4788e8
adc040dhttps://github.com/python-humanize/humanize/pull/315/commits/adc040da26377b4eb5fcd944579650ad5a4788e8
https://github.com/hugovk
_convert_aware_datetime: return early when value=Nonehttps://github.com/python-humanize/humanize/pull/315/commits/ae306a7dfae5bc6fccee5dddffe415ba78534dbf
ae306a7https://github.com/python-humanize/humanize/pull/315/commits/ae306a7dfae5bc6fccee5dddffe415ba78534dbf
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
May 16, 2026https://github.com/python-humanize/humanize/pull/315#event-25614723312
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
May 16, 2026https://github.com/python-humanize/humanize/pull/315#issuecomment-4468083650
Please reload this pagehttps://github.com/python-humanize/humanize/pull/315
Codecovhttps://app.codecov.io/gh/python-humanize/humanize/pull/315?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
e7c04f4https://app.codecov.io/gh/python-humanize/humanize/commit/e7c04f429ddf48ac434037d07eb2ca3c7435ea88?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
64cefb4https://app.codecov.io/gh/python-humanize/humanize/commit/64cefb4f5286512bcac4b73088d94e0dfa0c7f06?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/315/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/315/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/315/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/315/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/315?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/315
https://github.com/apps/codspeed-hq
codspeed-hqhttps://github.com/apps/codspeed-hq
May 16, 2026https://github.com/python-humanize/humanize/pull/315#issuecomment-4468083929
Please reload this pagehttps://github.com/python-humanize/humanize/pull/315
Open the report in CodSpeed to investigatehttps://codspeed.io/python-humanize/humanize/branches/hugovk%3Aperf?utm_source=github&utm_medium=comment-v2&utm_content=comparison_issues
test_scientifichttps://codspeed.io/python-humanize/humanize/branches/hugovk%3Aperf?uri=tests%2Ftest_benchmarks.py%3A%3Atest_scientific&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark
test_apnumberhttps://codspeed.io/python-humanize/humanize/branches/hugovk%3Aperf?uri=tests%2Ftest_benchmarks.py%3A%3Atest_apnumber&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark
test_ordinalhttps://codspeed.io/python-humanize/humanize/branches/hugovk%3Aperf?uri=tests%2Ftest_benchmarks.py%3A%3Atest_ordinal&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark
test_intcommahttps://codspeed.io/python-humanize/humanize/branches/hugovk%3Aperf?uri=tests%2Ftest_benchmarks.py%3A%3Atest_intcomma&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark
test_natural_listhttps://codspeed.io/python-humanize/humanize/branches/hugovk%3Aperf?uri=tests%2Ftest_benchmarks.py%3A%3Atest_natural_list&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark
CodSpeed MCPhttps://docs.codspeed.io/ai/mcp?utm_source=github&utm_medium=comment-v2&utm_content=mcp_tip_improvement
64cefb4https://github.com/python-humanize/humanize/commit/64cefb4f5286512bcac4b73088d94e0dfa0c7f06
e7c04f4https://github.com/python-humanize/humanize/commit/e7c04f429ddf48ac434037d07eb2ca3c7435ea88
https://codspeed.io/python-humanize/humanize/branches/hugovk%3Aperf?utm_source=github&utm_medium=comment-v2&utm_content=button
Please reload this pagehttps://github.com/python-humanize/humanize/pull/315
https://github.com/hugovk
Add perflint to Ruffhttps://github.com/python-humanize/humanize/pull/315/commits/64cefb4f5286512bcac4b73088d94e0dfa0c7f06
64cefb4https://github.com/python-humanize/humanize/pull/315/commits/64cefb4f5286512bcac4b73088d94e0dfa0c7f06
https://github.com/hugovk
hugovkhttps://github.com/hugovk
bde649fhttps://github.com/python-humanize/humanize/commit/bde649fc2927c022dd2a9eedba2a1ed677b97902
May 16, 2026https://github.com/python-humanize/humanize/pull/315#event-25614912513
Please reload this pagehttps://github.com/python-humanize/humanize/pull/315
https://github.com/hugovk
hugovkhttps://github.com/hugovk
May 16, 2026 21:02https://github.com/python-humanize/humanize/pull/315#event-25614912857
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%2F315
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/315
https://github.com/hugovk
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.