Skip to content

perf: cache Smart Mix favorites - #35

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
agent/optimize-smart-mix
Aug 10, 2026
Merged

perf: cache Smart Mix favorites#35
sarthakagrawal927 merged 1 commit into
mainfrom
agent/optimize-smart-mix

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

What

  • build the favorites set once per Smart Mix selection
  • reuse it across per-video scoring instead of repeating array membership scans
  • add an 8,760-row performance guard

Why

CodeVetter measured the representative Smart Mix flow at 4.230 ms/op and found repeated membership work in the catalog scoring path.

Evidence boundary

The benchmark establishes the current cost and guards the flow; it is not yet a paired before/after percentage claim.

Checks

  • focused Vitest performance test
  • Astro/TypeScript typecheck
  • Biome on changed files
  • git diff --check

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Preview: https://pr-35.looptv.pages.dev

@sarthakagrawal927
sarthakagrawal927 marked this pull request as ready for review August 10, 2026 07:04
@sarthakagrawal927
sarthakagrawal927 merged commit 89b0c64 into main Aug 10, 2026
3 checks passed
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