You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(native): defer NativeDatabase.openReadWrite until after change detection (#939)
* perf(native): defer NativeDatabase.openReadWrite until after change detection
setupPipeline eagerly opened a rusqlite connection (~60ms) before
knowing whether any files changed. On no-op incremental builds this
was entirely wasted — WASM only paid ~4ms for better-sqlite3.
Defer NativeDatabase.openReadWrite + initSchema to tryNativeOrchestrator,
which runs after the Rust orchestrator confirms files need rebuilding.
Setup now always uses better-sqlite3 for the cheap metadata reads
(schema mismatch check), and the native connection opens on-demand
only when the Rust pipeline will actually run.
Closes#934
Impact: 2 functions changed, 6 affected
* fix: clarify advisory-lock transfer and defensive flag reset (#939)
Impact: 1 functions changed, 5 affected
0 commit comments