Skip to content

perf(tui): batch and reuse syntax highlights - #35

Merged
rezigned merged 1 commit into
mainfrom
perf/batched-syntax-highlights
Aug 23, 2026
Merged

perf(tui): batch and reuse syntax highlights#35
rezigned merged 1 commit into
mainfrom
perf/batched-syntax-highlights

Conversation

@rezigned

Copy link
Copy Markdown
Owner

Summary

  • batch adjacent Markup and HTML rows through shared Syntect preparation
  • seed and reuse unchanged LazyText caches during rebuilds
  • retain Markup caches across render-mode switches
  • remove the separate HTML block cache

CPU Profile: switching between mode rapidly

Before
image

After
image

@rezigned
rezigned force-pushed the perf/batched-syntax-highlights branch 2 times, most recently from 9c2cfb6 to f4ceffb Compare August 23, 2026 08:56
- batch adjacent Markup and HTML rows through shared Syntect preparation
- seed and reuse unchanged LazyText caches during rebuilds
- retain Markup caches across render-mode switches
- remove the separate HTML block cache
@rezigned
rezigned force-pushed the perf/batched-syntax-highlights branch from f4ceffb to 781af91 Compare August 23, 2026 08:57
@rezigned
rezigned merged commit dfd3c5b into main Aug 23, 2026
10 checks passed
@rezigned
rezigned deleted the perf/batched-syntax-highlights branch August 23, 2026 09:07
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