Skip to content

perf: reduce allocations in render and preview paths#60

Merged
flexiondotorg merged 1 commit into
mainfrom
perf
Jul 5, 2026
Merged

perf: reduce allocations in render and preview paths#60
flexiondotorg merged 1 commit into
mainfrom
perf

Conversation

@flexiondotorg

Copy link
Copy Markdown
Contributor
  • Reuse unread audio samples in the streaming reader instead of trimming slices.
  • Precompute bar scanlines and split swscale upload from scaling work.
  • Send pre-rendered preview strings at a fixed cadence, and update UI tests.
  • Refresh the architecture note for the new preview cadence.
  • Add benchmarks for preview rendering and reader throughput.

  - Reuse unread audio samples in the streaming reader instead of trimming slices.
  - Precompute bar scanlines and split swscale upload from scaling work.
  - Send pre-rendered preview strings at a fixed cadence, and update UI tests.
  - Refresh the architecture note for the new preview cadence.
  - Add benchmarks for preview rendering and reader throughput.

Signed-off-by: Martin Wimpress <code@wimpress.io>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 14 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Performance refactoring: audio reader buffer reuse, precomputed bar scanlines, and pre-rendered preview strings. All changes are isolated and covered by updated tests.

Re-trigger cubic

@flexiondotorg flexiondotorg merged commit 1449bdf into main Jul 5, 2026
11 of 13 checks passed
@flexiondotorg flexiondotorg deleted the perf branch July 5, 2026 09:46
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