Skip to content

Start heatmap loads before score results#95

Closed
adrunkhuman wants to merge 1 commit into
masterfrom
experiment/parallel-heatmap-requests
Closed

Start heatmap loads before score results#95
adrunkhuman wants to merge 1 commit into
masterfrom
experiment/parallel-heatmap-requests

Conversation

@adrunkhuman
Copy link
Copy Markdown
Owner

Summary

  • Start loading /heatmap from htmx:beforeRequest using the current preference form values.
  • Keep POST /score as the ranked-results request and render those results when the HTMX response arrives.
  • Add frontend runtime coverage that proves the heatmap load starts before the /score response is rendered.

Testing

  • Commit hooks: ruff check, ruff format, ty type checker, pytest
  • uv run pytest tests/test_app_frontend.py tests/test_app_shell.py -q
  • uv run ruff check frontend tests/test_app_frontend.py

Notes

  • This is an experiment for VPS testing.
  • It may duplicate score-field work when GET /heatmap beats POST /score to the backend cache.
  • The thing to measure is whether faster heatmap start time is worth the possible extra CPU under slider churn.

@adrunkhuman
Copy link
Copy Markdown
Owner Author

No visible win at all. Site usage feels the same. Not worth pursuing for now.

@adrunkhuman adrunkhuman deleted the experiment/parallel-heatmap-requests branch April 24, 2026 14:13
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