Skip to content

Conversation

lrstanley
Copy link

Changes in this PR

  • Blending: added a simple early return for cases when the user provides the same number (or lower #) of steps vs stops.
    • Improves performance in edge cases, and allows for bypassing of blending in downstream components that use blending, when the user wants to fully control the blending generation themselves.
    • Makes the return value slightly more consistent (1 step == 1-length array, whereas we pinned to a minimum of 2-length arrays before).

Misc

@lrstanley lrstanley changed the title feat(blending): early return when steps == num stops feat(blending): early return when steps <= num stops Sep 9, 2025
@lrstanley lrstanley force-pushed the feature/blend-equal-steps-noop branch from 9622e29 to 62b7152 Compare September 9, 2025 23:20
@aymanbagabas aymanbagabas merged commit b259725 into charmbracelet:v2-exp Sep 12, 2025
9 checks passed
@aymanbagabas
Copy link
Member

Thank you @lrstanley!

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