Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python-humanize
/
humanize
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
136
Star
746
Code
Issues
14
Pull requests
26
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Performance improvements: 1.07x - 8.4x
- #315
#315
Merged
hugovk
merged 10 commits into
python-humanize:main
python-humanize/humanize:main
from
hugovk:perf
hugovk/humanize:perf
Copy head branch name to clipboard
May 16, 2026
Conversation
Commits
10
(10)
Checks
Files changed
Merged
Performance improvements: 1.07x - 8.4x
#315
hugovk
merged 10 commits into
python-humanize:main
python-humanize/humanize:main
from
hugovk:perf
hugovk/humanize:perf
Copy head branch name to clipboard
Commits
Commits on May 16, 2026
ordinal: call pgettext once instead of 10 times
hugovk
committed
c122312
View commit details
Copy full SHA for c122312
Browse repository at this point
apnumber: call gettext once instead of 10 times
hugovk
committed
cdc42af
View commit details
Copy full SHA for cdc42af
Browse repository at this point
intcomma: replace regex in while loop with format spec
hugovk
committed
55a9f8d
View commit details
Copy full SHA for 55a9f8d
Browse repository at this point
scientific: replace re.sub with int() and str.translate
hugovk
committed
4fceafa
View commit details
Copy full SHA for 4fceafa
Browse repository at this point
precisedelta: move 'import math' out of loop
hugovk
committed
6c604d0
View commit details
Copy full SHA for 6c604d0
Browse repository at this point
Replace try/except with get and getattr
hugovk
committed
59db151
View commit details
Copy full SHA for 59db151
Browse repository at this point
natural_list: use list comprehension
hugovk
committed
05eb187
View commit details
Copy full SHA for 05eb187
Browse repository at this point
precisedelta: avoid expensive list(Unit) lookup
hugovk
committed
adc040d
View commit details
Copy full SHA for adc040d
Browse repository at this point
_convert_aware_datetime: return early when value=None
hugovk
committed
ae306a7
View commit details
Copy full SHA for ae306a7
Browse repository at this point
Add perflint to Ruff
hugovk
committed
64cefb4
View commit details
Copy full SHA for 64cefb4
Browse repository at this point
You can’t perform that action at this time.