Skip to content

can we go faster - #2

Merged
bartman merged 3 commits into
masterfrom
can-we-go-faster
Sep 4, 2026
Merged

can we go faster#2
bartman merged 3 commits into
masterfrom
can-we-go-faster

Conversation

@bartman

@bartman bartman commented Sep 4, 2026

Copy link
Copy Markdown
Owner
  • Fetch bounded jrange date lists concurrently
  • Load table, heatmap, and list workouts via batched jdays
  • Document concurrent jrange listing and lazy getSession

jrange is capped at 32 weeks, so a year like 2026 needed sequential
round-trips. Split [oldest, latest] into independent windows and fetch
them in parallel. Unbounded listing still paginates sequentially.
These commands spawned one get_jday task per date, which is a GraphQL
request on cache miss. Use get_jdays instead (cache locally, batch the
rest). Skip the eager getSession on startup; unit preference is cached
or fetched lazily. Filtered list no longer downloads each workout twice.
Note that bounded date ranges fetch jrange windows in parallel, that
table/heatmap/list reuse batched jday loads, and that getSession is no
longer required on every command.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 47.10744% with 64 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.26%. Comparing base (8bec323) to head (0887a29).

Files with missing lines Patch % Lines
src/list.rs 0.00% 27 Missing ⚠️
src/table.rs 0.00% 18 Missing ⚠️
src/heatmap.rs 0.00% 10 Missing ⚠️
src/workouts.rs 89.06% 7 Missing ⚠️
src/main.rs 0.00% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
+ Coverage   58.94%   64.26%   +5.32%     
==========================================
  Files          12       12              
  Lines        1756     1679      -77     
==========================================
+ Hits         1035     1079      +44     
+ Misses        721      600     -121     

☔ 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.

@bartman
bartman merged commit e4ea1b6 into master Sep 4, 2026
1 check passed
@bartman
bartman deleted the can-we-go-faster branch September 4, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants