Skip to content

perf: cache results and preview rendering to speed up large documents - #67

Merged
harehare merged 1 commit into
mainfrom
perf/cache-render-results
Sep 28, 2026
Merged

harehare merged 1 commit into
mainfrom
perf/cache-render-results

Conversation

@harehare

Copy link
Copy Markdown
Owner

Lazily compute and cache the rendered results lines, per-node line counts and preview lines so cursor moves and redraws no longer re-render the whole document. Only build list items around the selection and only pass visible preview lines to the paragraph.

Lazily compute and cache the rendered results lines, per-node line
counts and preview lines so cursor moves and redraws no longer
re-render the whole document. Only build list items around the
selection and only pass visible preview lines to the paragraph.
@harehare
harehare merged commit 815b25c into main Sep 28, 2026
1 check 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