Skip to content

fix(macos): perf audit bugs in tab restore, shortcuts, the cell editor, Fetch All, catalog switches and MariaDB checks - #4771

Merged
datlechin merged 5 commits into
mainfrom
fix/macos-perf-audit-bugs
Dec 1, 2026
Merged

datlechin merged 5 commits into
mainfrom
fix/macos-perf-audit-bugs

Conversation

@datlechin

@datlechin datlechin commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Cell editor popover, measured in a probe built like the popover (TextKit 2, hex text, main-thread CPU, peak footprint):

Value Build Open First key Peak footprint
256 KB main (unwrapped, select-all) 0.78 s 0.72 s 245 MB
256 KB this PR (wrapped, caret) 0.24 s 0.44 s 119 MB
1 MiB main (unwrapped, select-all) 2.9 s 2.8 s 852 MB
1 MiB this PR (unwrapped, caret) 2.8 s 2.8 s 686 MB

Deliberately not fixed here

  • Refresh drops a large table's row total #4420, Refresh blanking a large table's total: a fix that re-reads the estimate needs a refresh signal through the table load; the marker that stood in for it drew a race in review, and keeping the old total alone leaves it stale after a truncate elsewhere.
  • MariaDB: offer a value picker for a column CHECK (col IN (...)) #4424 beyond a MariaDB column's own check: MySQL 8 checks, table-level checks, two lists on one column, charset-introduced literals and value completion. Each needs the column collation or the introducer's charset to be exact.

Test plan

  • Fail on main: QueryParameterDetectionTests/restoredOpenPanelRunsAtOnce, PersistedTabRoundTripTests/parameterPanelStateRoundTrips, KeyboardLayoutTests, MainMenuBuilderTests (German layout case), DataGridTextEditorPopoverTests/arrowsFollowVisualLines, /softBreakFollowsAffinity, /openingSelection, CellEditorArrowExitTests/wrappedParagraphFollowsVisualLines, FetchAllQueryTaskTests/truncatedFetchAllKeepsTheFlag, MainContentCoordinatorSortTests/failedSortKeepsTheCutResultsLoadMore, DatabaseManagerDatabaseSwitchTests/inPlaceSwitchShowsTheLandedCatalog, /schemaSwitchShowsTheLandedCatalog, SchemaGroupedRefreshCostTests/schemaSwitchKeepsACurrentCatalog, MySQLColumnChecksTests (character outside the BMP, own check values), MySQLCheckConstraintsTests (MySQL 8 decode, ANSI-quoted name).
  • New: MySQLCheckValueListTests (TableProMySQLCore), core library::records_of_a_connection_the_library_does_not_hold_stay_on_the_device_until_it_is_saved.
  • Changed on purpose: QueryExecutorTests/parseSQLiteCheckSkipsNull (perf(grid): read less on table open, save and query-tab SELECT #4458) is now parseSQLiteCheckWithNullOffersNoPicker; MySQLColumnChecksTests' place() cases became line-reader cases.
  • Local: macOS suites above, TableProCore MySQL package tests, cargo test -p tablepro-sync --test cloudkit -- library, iOS QueryCompletionCatalogTests and PluginBackedDriverTests, lint.

Fixes #4419
Fixes #4421
Fixes #4423
Fixes #4424
Fixes #4443
Refs #4420
Refs #4442
Refs #4459
Refs #4464
Refs #4524

@datlechin
datlechin disabled auto-merge December 1, 2026 04:40
@datlechin
datlechin merged commit dccecad into main Dec 1, 2026
64 of 69 checks passed
@datlechin
datlechin deleted the fix/macos-perf-audit-bugs branch December 1, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant