Skip to content

perf(mobile): bound caches, file work and background event traffic - #670

Merged
huichen merged 5 commits into
mainfrom
perf/mobile-perf-remaining
Sep 16, 2026
Merged

huichen merged 5 commits into
mainfrom
perf/mobile-perf-remaining

Conversation

@huichen

@huichen huichen commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Account for Map/Set/projector closure memory and bound the shared Markdown cache.
  • Coalesce draft writes with max-wait and ordered read/save/clear/navigation/background barriers.
  • Bound encrypted subscription and activation bursts; keep native JSON parsing after rejecting a slower custom parser on real traces.
  • Download immutable chunks in bounded ordered waves; add background native streaming SHA-256 with a bounded older-binary fallback.
  • Virtualize giant tables/code blocks with full-source copying and UTF-16-safe visual chunks.
  • Negotiate selective_events_v1: selected-session detail subscription plus low-rate background run/approval notices; legacy behavior, AEAD binding and pairing scope retained.

Validation

  • Mobile typecheck + ESLint + 1,469 tests / 105 suites after upstream integration.
  • Desktop TS typecheck + lint + stylelint + 1,080 tests / 127 suites.
  • Desktop Rust 1.97 fmt, all-target clippy -D warnings, cargo test: 1,266 library + 1 binary + 5 integration passed (existing ignored tests retained).
  • Android native compileReleaseKotlin reported BUILD SUCCESSFUL; compiled worktree hashFile bytecode verified. Command channel timed out after build success.
  • Swift syntax check passed; full iOS build/device execution remains unverified (no Xcode here).
  • Real Chrome JSON A/B used 50,000 actual events / 8,141,437 bytes with identical content. Final throughput essentially unchanged; a slower JS-parser candidate was removed.

Compatibility and limits

  • Selective traffic needs updated Desktop and mobile JS; old peers keep wildcard delivery. Native hash needs a rebuilt app, otherwise bounded fallback applies.
  • No private traces/credentials committed; no running user agent disturbed; no battery-percentage/native-FPS claim.
  • Report: mobile/docs/remaining-performance-2026-09-16.md. Protocol: docs/internals/desktop/CONNECTION.md.

@huichen
huichen enabled auto-merge (squash) September 16, 2026 12:33
@huichen
huichen merged commit 4b4f2b9 into main Sep 16, 2026
22 of 24 checks passed
@huichen
huichen deleted the perf/mobile-perf-remaining branch September 16, 2026 12:59
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