Repository navigation
Conversation
…-16, defer hidden find, reuse the band's statement index
…band does not keep it
datlechin
enabled auto-merge (squash)
November 23, 2026 06:27
This branch has not been deployed
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.
Summary
AXNumberOfCharactersanswers the UTF-16 length, the unit every other range the editor answers is in, instead of walking graphemes.Measured on Release builds, arm64, base
9d0d481cf1against this branch. Instruction and CPU counts are the load-robust rows; machine load was 8 to 12 throughout.restore-67048peak footprint, main CPU, fragment viewsopen-firsttab-67048peak, main CPUrestore-20000main CPU from first frame to first free turnrestore-20000peak, fragment views at the endrestore-5000main CPU from first frame, interleavedjson-1000,json-5000,json-10000main CPUjson-5000peak footprintAXNumberOfCharactersmain CPU at 490k charstype-490kinstructions per keytype-490kmain-thread malloc per keytype-510kinstructions per keytype-10kinstructions per keytype-10mbinstructions per key (TablePlus 291 M)type-10mbprocess CPU per keyrun-at-cursor-5000linesCmd-Return main CPU, two pressesrun-at-cursor-10mbCmd-Return main CPU, two pressestype-5000lines-findsetinstructions per key, term kept, panel hiddentype-5000lines-findsetmain CPU per key, turns over 50 mstype-10mb-findsetmain CPU per keyThe
restore_*rows of theeditordimension measure from the first frame, which this branch draws earlier, so they are left out. Small restores interleaved at the same load:restore-500787 ms against 672 and 859 ms,restore-1000662 against 601 ms of main CPU.Tests changed on purpose:
EmphasisGeometryUpdateTests.makeTallTextView: comment only, since init no longer lays out the whole text. No assertion moved.QueryCompletionAdapterLifecycleTestsand thecompletions(in:at:)callers inSQLCompletionServiceEmptyPrefixTestsandQueryCompletionRankingTestspassstatement: nil; the stubs answerstatementGrammar.New tests:
ViewReuseQueueTests,TextViewControllerOpeningLayoutTests,FindPanelHiddenSearchTests,SQLCompletionServiceStatementHintTests,StatementAtCaretRoutingTests, plus cases inTextLayoutManagerFragmentViewTests,AccessibilityTests,SQLCompletionWindowTests,StatementRunControllerTestsandQueryCompletionAdapterLifecycleTests.Deliberately not fixed here:
type-5000lines-findsetcosts 76 ms of main CPU a find-field character, of which the regex is about 4 ms; at 10 MB, 713 ms a character with the regex at 86 to 111 ms. The rest is one emphasis layer per match (18,569 fortat 5000 lines), which E6b removes. E6a alone would not make the field responsive, so it follows E6b.type-490k110 M andtype-510k131 M againsttype-10k87 M, so there is no frame to name.restore_*andrun-at-cursortotals to idle include the query run and the result grid, which moved onmainsince the base; only the synchronous Cmd-Return action is compared.Test plan
verify.sh testonTableProTextEngineTests,TableProEditorKitTestsand 15 app suites: 988 + 24 + 99 cases pass.verify.sh package TableProCoreforSQLCompletionWindowTestsandSQLStatementCursorIndexTests: pass.origin/main: no findings.