Skip to content

Cut the continuous view's cost per navigation step - #235

Open
alex-rawlings-yyc wants to merge 1 commit into
mainfrom
perf/continuous-view-responsiveness
Open

Cut the continuous view's cost per navigation step#235
alex-rawlings-yyc wants to merge 1 commit into
mainfrom
perf/continuous-view-responsiveness

Conversation

@alex-rawlings-yyc

@alex-rawlings-yyc alex-rawlings-yyc commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Size the strip's render window to the viewport instead of a fixed 100 groups each side, keep the per-group and per-slot memoization from being defeated by per-render callback identities, read each phrase box's geometry once per arc pass, and resolve token-chip labels once per strip rather than per chip. An arrow press drops from ~790ms to ~100ms on an 8th-gen i5.


This change is Reviewable

Size the strip's render window to the viewport instead of a fixed 100
groups each side, keep the per-group and per-slot memoization from being
defeated by per-render callback identities, read each phrase box's
geometry once per arc pass, and resolve token-chip labels once per strip
rather than per chip. An arrow press drops from ~790ms to ~100ms on an
8th-gen i5.
@alex-rawlings-yyc alex-rawlings-yyc self-assigned this Aug 15, 2026
@alex-rawlings-yyc alex-rawlings-yyc added the up next Auto adds an issue to the PT Lexical Extensions project label Aug 15, 2026
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 873e4803-eb28-4c30-9187-ce3f7f6c3b73


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

up next Auto adds an issue to the PT Lexical Extensions project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant