Repository navigation
perf(ios-runner): prepare an iPhone coordinate tap without re-reading its window - #5183
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 10 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
…very nil-window route
|
Thanks for the work on this. Review of c37f4f4 found one thing to resolve before merge: live proof for two changed device routes.
Before merge, please attach one recorded iPhone simulator run at this head. Each changed route needs to work there:
Include the commands, device, head SHA and outputs. Could These three threads do not apply and can be resolved. The multi-screen concern is covered, because the sole-screen size is zero unless there is exactly one screen, so Not verified here: no simulator run was done, so the medians, the landscape press and the 259-test result are author-reported. Not verified here: whether XCTest landscape window frames exactly equal The only check that did not pass is a cancelled |
A synthesized coordinate context now carries SynthesizedWindowSource (resolved, with whether the window fills an iPhone's only screen; soleScreen, an unreadable tree; deferred, a skipped windows query) instead of a window and three booleans. The dispatch window, the unreadable-tree answer, the fallback log and the deferred query's proof read that one value. The deferred tap frame and the fills-screen comparison read through soleScreenReferenceFrame(app:phoneOnly:), which removes soleIPhoneScreenFrame and fillsSoleIPhoneScreen. The phone-only read admits by the phone idiom, as RunnerResolveSoleScreen does for an iPhone, so a per-gesture caller skips the admission's screens query.
|
Thanks for the review. Both points are done at head Refactor
Recorded run
In that run, the first landscape Your "not verified" points
Commands and outputsRunner markers (dispatch, record, edge touch) |
|
Thanks for the update. The code at f336513 looks good, and both earlier requests are now addressed: the simulator evidence is recorded, and the Not verified here: no simulator run was made, and the recorded run, the landscape-frame equality test and the mutant results are as reported by the author. In the recorded run, None of the earlier high-priority threads still applies, and no lower-priority ones do either. These can be resolved: the screen-count check is not needed because the sole-screen size is zero unless exactly one screen exists, so the reference frame is nil on multi-screen devices; the deferred fallback log is fixed, as a deferred context logs CI is green, with all 16 checks passing at this head. Nothing else needs to change before merge. |
|
Thanks for merging and sorry video didnt got attached for some reason so just sharing again incase u want the recording recording.mp4 |
Summary
Before each iOS coordinate tap (what
press @refandpress <selector>send), the runner queried the app's windows, re-read that window's frame and screen at dispatch, and ran one SpringBoard modal query per type. On an iPhone with one screen the app fills it, the rule the sole-screen route already uses.SynthesizedWindowSourcevalue decides both.Before / after (iOS 27.2 simulator, Settings)
Builds taking turns, 24 presses of each kind per build, daemon-side medians, load 8–27:
press @refpress 'label="General"'wait textafter itback, waitUnder heavy load: −179 to −199 ms per press.
Validation
d2a4abe701; headf336513ece. A recorded simulator run at this head (review reply) covers scroll, swipe,backand edge touch in both orientations, and apressunder a SpringBoard alert.native-dupes,xctest-selection,packaged-runner-swiftpassed.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.