Skip to content

perf(mobile): responsive streaming, fewer wakeups, incremental rich Markdown - #664

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

huichen merged 5 commits into
mainfrom
claude/mobile-perf-pr

Conversation

@huichen

@huichen huichen commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bound live bursts so back navigation can run, defer navigation cache sizing, and batch projector snapshots.
  • Coalesce ordinary deltas at 80 ms; approvals, errors and terminal events bypass the text cadence. Remove redundant typewriter timers and pause background projection/duration timers.
  • Preserve incremental Markdown blocks for links/images/task lists while invalidating safely for late definitions.
  • Include read-only local browser probes and a report using real traces (152,394 and 19,814 events). No private conversation contents or credentials are committed.

Validation

  • Mobile typecheck + eslint + all 1,376 Jest tests passed after syncing origin/main.
  • Desktop typecheck + eslint + stylelint + all 1,077 Vitest tests passed (shared Markdown consumer).
  • Three-round real Chrome trace A/B: longest warm burst 2,713 -> 80 ms; paced trace commits 102 -> 28; content/cursor parity verified.
  • Report: mobile/docs/performance-energy-2026-09-16.md. Browser measurements are TS/scheduling/parse metrics, NOT native RN performance or measured battery savings.

Follow-up

Native release-device power/gesture verification and preview/cache optimizations remain separate work.

@huichen
huichen enabled auto-merge (squash) September 16, 2026 09:51
@huichen
huichen merged commit 815b8e2 into main Sep 16, 2026
12 checks passed
@huichen
huichen deleted the claude/mobile-perf-pr branch September 16, 2026 10:05
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