Skip to content

Reuse mdbase type validation during startup - #2707

Merged
callumalpass merged 1 commit into
mainfrom
fix/2705-startup-metadata
Nov 25, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix/2705-startup-metadata

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Related to #2705.

TaskNotes scans for superseded beta types before selecting the canonical type. Both passes were parsing and validating the same type definition. The second pass still reads the current file and reuses validation only when the path and contents match. The regression test changes the type between the two passes and verifies that TaskNotes rejects the new invalid definition and preserves the file.

Measurements

Eight interleaved pairs of fresh Linux Obsidian 1.15.1 processes on equivalent generated vaults with 10,318 files, TaskNotes as the sole community plugin, and mdbase type definitions enabled. The baseline build matched the published 5.0.5 bundle byte for byte. Median times:

Phase 5.0.5 This change
TaskNotes onload 102.1 ms 90.6 ms
mdbase initialization within onload 83.9 ms 72.9 ms
Obsidian's TaskNotes startup entry 271.5 ms 259.5 ms

The reported Windows cold-start delay remains unverified. The measurements cover repeat launches with existing collection metadata.

Checks

  • 6,622 Jest tests passed.
  • Lint, typecheck, production build, and bundle-size check passed.
  • The instrumented production build loaded and registered TaskNotes commands in all eight measured native launches.

@callumalpass
callumalpass merged commit e7605a9 into main Nov 25, 2026
3 checks 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