Repository navigation
perf(mobile): suspend hidden-screen polling and clocks - #636
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A retained thread panel continued
GetThreadPanelpolling every five seconds while the app was backgrounded. Covered native-stack screens also retained clocks and decorations. Scope recurring work to foreground screen visibility, share countdown ticks, and cancel diagnostics uploads on suspension. A pure-TS lifecycle regression guard covers suspension, resumption, duplicate activity events and teardown.Fixes: #559
Related: #629
Method: temporary hook instrumentation outside the repository, executing the production query cache and hooks with a simulated 120-second clock. These are timer/request counts, not native CPU, FPS, React render rates, hardware wakeups or battery measurements. No conversation payloads were captured.
Native profiling is blocked: T3 Device list and open report
Could not communicate with device support. Try refreshing devices.Refreshing once did not recover the service. SSH profiling was available, but Android was inDevLauncherErrorActivitywith zero recorded app frames. Its 0.2% process CPU is therefore excluded as an invalid Canopy baseline. iOS's installed process was at 0.0% inps, also without a verified scenario. No native before/after claim is made.Inspection found UI/native-thread animation loops, stable list keys, memoized timeline/tree rows, and the existing shared status-label clock. The warmer remains bounded to one request at a time and at most 12 starts/min; unchanged heads do not schedule reads. No hot-message log spam or animated backdrop blur was found. The 24-slice text shimmer and continuous composer geometry sampling still need a native GPU/layout profile. This PR only suspends those paths when hidden/backgrounded; it does not claim to eliminate foreground heating.
Validation uses
nice -n 10: install, gen:check, typecheck, repository lint, format:check and web build passed. The focused lifecycle regression test passed. Both native JS/Hermes exports passed (approximately 12 MB each). Full check:tmp passed on the combined changes: 2,749 passed, 166 skipped, zero failures, and nothing left in the checked temp directory. All CI checks passed at this head. Expo ESLint has pre-existing findings: isolateddevbaseline 82 errors, changed tree 79, with no new file/rule errors. No UI suites, EAS builds, release builds, publications or native dependency changes.Native fingerprints are unchanged in the same local stable config:
74705db3a68907bc28379bb9b1080a227bc0755b7d38be8f5c9bf842d62060c75820a206f99c87e3UI copy is unchanged. Native visual verification remains blocked by device support.