Skip to content

perf: lazy load loguru.logger to speed up cli -h#150

Merged
joanise merged 2 commits into
mainfrom
dev.ej/lazy-load-logger
Jul 20, 2026
Merged

perf: lazy load loguru.logger to speed up cli -h#150
joanise merged 2 commits into
mainfrom
dev.ej/lazy-load-logger

perf: tuck away more slowish imports

193ccc6
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Jul 17, 2026 in 1s

47.42% (-0.11%) compared to 22272e5

View this Pull Request on Codecov

47.42% (-0.11%) compared to 22272e5

Details

Codecov Report

❌ Patch coverage is 44.44444% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.42%. Comparing base (22272e5) to head (193ccc6).

Files with missing lines Patch % Lines
fs2/cli/check_data.py 0.00% 2 Missing ⚠️
fs2/cli/preprocess.py 0.00% 1 Missing ⚠️
fs2/cli/train.py 0.00% 1 Missing ⚠️
fs2/variance_adaptor.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
- Coverage   47.52%   47.42%   -0.11%     
==========================================
  Files          27       27              
  Lines        1978     1978              
  Branches      224      224              
==========================================
- Hits          940      938       -2     
- Misses       1002     1004       +2     
  Partials       36       36              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.