Skip to content

perf(markdown): cache conversion patterns and index task lines - #354

Open
PathGao wants to merge 1 commit into
sftwrdotdev:stack-test/320-checkboxfrom
PathGao:perf/markdown-conversion-hot-path
Open

perf(markdown): cache conversion patterns and index task lines#354
PathGao wants to merge 1 commit into
sftwrdotdev:stack-test/320-checkboxfrom
PathGao:perf/markdown-conversion-hot-path

Conversation

@PathGao

@PathGao PathGao commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Cache Markdown conversion regular expressions with LazyLock.
  • Index Markdown source lines once before annotating task checkboxes.
  • Add a 64-item nested and quoted task-list regression test.

Dependency

Depends on #345 because it optimizes the task-checkbox annotation protocol introduced there. It is intentionally separate from the preview-width, display-math, and checkbox-persistence portions of the current Stack.

Validation

  • npm ci
  • npm run check
  • npm test (151 passing)

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