Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
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 }}
python-humanize
humanize
Repository navigation
Code
Issues
17
(17)
Pull requests
34
(34)
Actions
Security and quality
Insights
More
items
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.