Avatar for the corentin-core user
corentin-core
budget-forecaster
BlogDocsChangelog

perf: add progressive date caching in RecurringDateRange

#281
Comparing
issue/278-reduce-relativedelta-overhead
(
9f01cac
) with
main
(
6a8cb07
)
CodSpeed Performance Gauge
×2.3
Improvement
2
Untouched
1

Benchmarks

3 total
test_compute_budget_forecast
tests/benchmarks/test_report_benchmark.py
CodSpeed Performance Gauge
×2.3
339.6 ms150.3 ms
test_compute_report
tests/benchmarks/test_report_benchmark.py
CodSpeed Performance Gauge
+78%
438.6 ms245.9 ms
test_compute_balance_evolution
tests/benchmarks/test_report_benchmark.py
CodSpeed Performance Gauge
+3%
55.5 ms53.9 ms

Commits

Click on a commit to change the comparison range
Base
main
6a8cb07
+94.44%
perf: add progressive date caching in RecurringDateRange
f7c8562
26 days ago
by corentin-core
+31.12%
refactor: replace _cache_exhausted flag with _last_cached_end date
6075bf7
26 days ago
by corentin-core
+0.13%
perf: early return in _ensure_cached_up_to when cache is complete
9868987
26 days ago
by corentin-core
+0.28%
refactor: replace while True loops with explicit conditions
9f01cac
26 days ago
by corentin-core
© 2026 CodSpeed Technology
Home Terms Privacy Docs