Skip to content

Reuse Writer outline headings and section word counts - #245

Merged
callumalpass merged 4 commits into
mainfrom
perf/writer-outline-updates
Nov 28, 2026
Merged

callumalpass merged 4 commits into
mainfrom
perf/writer-outline-updates

Conversation

@callumalpass

@callumalpass callumalpass commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Refs #113

Writer reuses heading parses across folded and expanded outline rows. Section word counts stay available when a chapter is revisited. Changes to the record view refresh both.

Across three pairs of 120-chapter Vitest runs, median outline updates fell from 19.97 to 16.76 ms while editing and from 21.98 to 18.57 ms when switching chapters. The benchmark README includes p95 ranges, search and comment measurements, and reproduction commands.

Both editor-only Chromium profiles loaded 60 chapters and 300 comments, checked outline search and source filtering, and downloaded a valid 27,086-byte DOCX. The browser timings vary by phase, with long tasks above 20 seconds around export and sources. The repeated Vitest runs establish the outline comparison.

The full rpnpm check, both performance fixtures, and the production build passed.

@callumalpass callumalpass changed the title Reuse heading and word counts in Writer outlines Reuse Writer outline headings and section word counts Nov 28, 2026
@callumalpass
callumalpass merged commit 308b6b1 into main Nov 28, 2026
1 check passed
@callumalpass
callumalpass deleted the perf/writer-outline-updates branch November 28, 2026 08:22
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