Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer imports for faster overall import time: 5 ms -> 3 ms #238

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Feb 14, 2025

Follow on from #234.

Before: 5 ms

image

After: 3 ms

image

@hugovk hugovk added the changelog: Changed For changes in existing functionality label Feb 14, 2025
@hugovk hugovk enabled auto-merge February 14, 2025 14:51
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.49%. Comparing base (4762bdd) to head (aaef964).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #238   +/-   ##
=======================================
  Coverage   99.48%   99.49%           
=======================================
  Files          11       11           
  Lines         782      796   +14     
=======================================
+ Hits          778      792   +14     
  Misses          4        4           
Flag Coverage Δ
macos-latest 97.73% <100.00%> (+0.04%) ⬆️
ubuntu-latest 97.73% <100.00%> (+0.04%) ⬆️
windows-latest 95.97% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hugovk hugovk merged commit a0602c7 into python-humanize:main Feb 14, 2025
35 checks passed
@hugovk hugovk deleted the lazy-math branch February 14, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: Changed For changes in existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant