catacomb/docs/superpowers/specs
Luna d4bed019b2
perf: runtime performance pass, phase 1 (DB pragmas, batched scan writes)
Executes docs/superpowers/specs/2026-07-07-runtime-performance-pass-design.md:

- database.rs: every pooled connection now runs WAL + synchronous=NORMAL
  + busy_timeout=5000 + foreign_keys=ON via with_init (in-memory pools
  get the latter two). Fixes the SQLITE_BUSY failure mode under the
  parallel scanner and makes FK cascades work on every connection, not
  just whichever one last ran the old one-shot pragma in delete_folder.
- database.rs: prepare_cached for the per-video info_cache queries; new
  info_cache_put_many bulk upsert (single transaction) replaces the
  per-row autocommitted info_cache_put, with a round-trip unit test.
- library.rs: enrich_with_cache collects cache misses and flushes them
  once per channel; title sort uses sort_by_cached_key.
- app.rs: Title/ChannelAsc sorts use sort_by_cached_key instead of
  allocating two lowercased strings per comparison.
- Cargo.toml: panic=abort in release (crash-hook still fires; Cargo
  forces unwind for test harnesses). PACKAGING.md documents the local
  RUSTFLAGS target-cpu=native opt-in; repo stays portable.
- .gitignore: catacomb.db-wal / catacomb.db-shm sidecars.

Verified: 146 tests pass (integration suite exercises the pragmas
end-to-end), x86_64-pc-windows-gnu check green, live smoke shows
journal_mode=wal + batched cache writes landing correct rows.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 01:22:40 -07:00
..
2026-06-27-android-engine-feasibility-findings.md docs(android-spike): synthesis — GO, with Stage-1 prototype recommended 2026-06-27 08:39:05 -07:00
2026-06-27-android-engine-feasibility-research.md docs: spec for Android engine feasibility research spike (roadmap 3.2) 2026-06-27 00:21:56 -07:00
2026-06-27-android-stage1-prototype-plan.md docs(android-spike): gitignore local tooling/session files; add Stage-1 prototype plan 2026-06-27 09:46:25 -07:00
2026-06-27-desktop-visual-refresh-design.md docs(design): desktop visual refresh + theme pack spec 2026-06-27 10:11:11 -07:00
2026-07-05-mobile-scaling-and-pwa-design.md feat(web): fix mobile scaling regressions and ship installable PWA 2026-07-08 00:04:17 -07:00
2026-07-07-runtime-performance-pass-design.md perf: runtime performance pass, phase 1 (DB pragmas, batched scan writes) 2026-07-08 01:22:40 -07:00
q1-yt-dlp-android-report.md docs(android-spike): Q1 yt-dlp-on-Android findings + verdict (RISKY) 2026-06-27 01:56:20 -07:00
q2-js-runtime-android-report.md docs(android-spike): Q2 JS-runtime findings + verdict (RISKY) 2026-06-27 02:28:28 -07:00
q3-pot-android-report.md docs(android-spike): Q3 POT/Proof-of-Origin findings + verdict (RISKY) 2026-06-27 02:33:23 -07:00
q4-rust-jni-android-report.md docs(android-spike): Q4 Rust-core-via-JNI findings + verdict (PROVEN) 2026-06-27 02:40:13 -07:00