Repository navigation
Reduce large-document typing and unwrapped scrolling work - #482
Merged
Merged
Conversation
simonbs
marked this pull request as ready for review
November 2, 2026 19:29
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 25 MiB short-line JSON fixture took about 234 ms per middle-document character insertion on a USB-connected iPad Pro (12.9-inch, 3rd generation), iPadOS 26.6. The final candidate reduces that median to 117 ms. Unwrapped long-line fast-scroll work falls from 16.01 to 5.61 ms median and from 30.78 to 9.43 ms p95.
The paired Release runs use the same two performance cases/order, 390×700-point viewport, disabled spelling/autocorrection, no coverage, serial execution, and an app host isolated from session restoration. Edit figures are five synchronous API samples; scroll-work figures are 90 callbacks. These are not keyboard-latency or compositor frame-rate measurements.
Changes:
Validation:
Structural JSON edits still take roughly 235–247 ms: parsing and the stock structural comparison remain bottlenecks. Physical touch/keyboard XCUITests are unverified because their runner has no provisioning profile and Xcode has no signed-in account to create one. App-side preview deferral and benchmark-host isolation are committed separately in the app repository; its canonical framework pin is unchanged. CI build/test (Xcode 16.4 and 26.2), example build, SwiftLint and documentation passed. CodeQL is still running; this PR is not merged.