Skip to content

fix: speed up weekly replay loading#27

Draft
user040131 wants to merge 1 commit into
codex/harden-nextjs-front-runtimefrom
codex/fix-weekly-replay-latency
Draft

fix: speed up weekly replay loading#27
user040131 wants to merge 1 commit into
codex/harden-nextjs-front-runtimefrom
codex/fix-weekly-replay-latency

Conversation

@user040131

Copy link
Copy Markdown
Member

Summary

  • restructure weekly replay generation so U.S. documents are loaded once and per-day predictions reuse the same document pool
  • cache weekly replay results and parallelize historical price prefetching so repeated replay loads return quickly
  • clean up replay outcome labels/tests and give the replay client a longer timeout for the heavier weekly payload

Verification

  • C:\Users\wn413\Desktop\Finance_helper\services\api\.venv\Scripts\python.exe -m pytest services/api/tests -q
  • npx pnpm --filter @finance-helper/web exec tsc --noEmit
  • direct GET http://localhost:8000/api/v1/replay/weekly
    • first call: about 25.47s
    • second call: about 2.07s

Related

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.

1 participant