lattice_core 0.4.1
lattice_core: ^0.4.1 copied to clipboard
Pure Dart data grid engine: multi-column sorting, filtering, search, grouping with aggregates, tree rows, virtualization, selection, cell editing and CSV export.
Changelog #
0.4.1 #
Package metadata only; no code change.
0.4.0's pubspec description and screenshot description were both over the
lengths pub.dev scores them against - 180 characters for the description,
160 for a screenshot's - which cost the package 20 of its points. Neither
limit is checked by dart pub publish --dry-run, and the upload itself
enforces a different screenshot limit (200), so the only way to find out
was to publish. Both are inside both limits now, and the pubspec says so
beside each one.
0.4.0 #
A customer read all ~7,000 lines of the engine, wrote a probe per suspected defect, and sent back 79 confirmed bugs with the test that reproduces each one. This release fixes 77 of them; the two it does not are named at the end, with what to do instead. The suite is 699 tests, up from 590.
Six were data-integrity bugs - wrong values written, or user work lost - and none of them were things a user could have diagnosed. Editing one of two equal rows wrote to the other. "Case-insensitive" filters were case-sensitive. A refused write stayed on screen. Undo silently skipped rows it could not see, and then consumed the step anyway. Read the first section even if you skip the rest.
Breaking #
Behavioural changes first, because they are the ones no compiler will point at.
- A case-insensitive filter is now actually case-insensitive.
caseSensitivedefaults to false, andequals,notEquals,isIn,>=,<=andbetweenall compared with the tiebreaking comparison a sort needs, soequals: 'apple'did not match'Apple'. A grid relying on the old behaviour was relying on the bug; passcaseSensitive: trueto keep it. - Text columns sort case- and accent-insensitively by default.
[banana, Cherry, apple]sorted to[Cherry, apple, banana], andécolesorted afterzebra. Pass acomparatorto a column to get the code-unit order back. The folded key is computed once per row, so the new default is no slower. compareValuesranks by type class before comparing. Mixed-type columns used to compare across types by their string forms, which made the relation intransitive -9 < 10,10 < '5','5' < 9- soList.sortcould order them differently between runs.BigIntcompares as a number rather than as text.- Group and tree paths have a new format. A path segment now names its
field and tags its key's type, because
nulland"null", and1and"1", produced the same path - and two groups with one path share one expansion state and one lazy-load cache entry. A tree branch is keyed by its own row key rather than by the chain of its ancestors. Collapsed-group paths saved by 0.3.x no longer match, so a restored view opens with its groups expanded; nothing else in a saved view is affected. Build paths withgroupPathSegment, orGridController.treePathFor, rather than by hand. GroupExpansionState.collapseAll()takes no arguments. It flipped through the paths it knew about, which could only close the groups already on screen; a group that arrived later opened itself again. It flips the default instead.GridViewStatecarriesgroupsExpandedByDefaultso the mode survives a round trip.distinctValuesForreturnsDistinctValues, notList<Object?>. The list isvalues, andtruncatedsays whether the column holds more than the limit - which a bare list could not. It is also computed over the rows matching every filter except the column's own, so picking "Input" no longer leaves "Input" as the only value on offer, and a truncated list holds the smallest values rather than the first ones seen.- A data source that pages must honour
GridQuery.offset. Infinite scroll asks for one slice from where the last one ended; it used to ask from the top for everything loaded so far, so ten slices of 100 transferred 5,500 rows to show 1,000. A source that ignoresoffsetwill now return the same rows repeatedly. exportCsvhonours collapsed groups. The expansion state was accepted and never read, while the method documented itself as matching the screen. PassExportOptions(respectCollapsed: false)for the old behaviour.- Negative numbers export as numbers. The formula sanitiser treated a
leading
-as the start of a formula, so every negative value in a numeric column exported as text and broke the sums the export existed to compute. A value that parses as a plain number is not sanitised, and aColumnType.numbercolumn is not sanitised at all. - Clipboard text is quoted. A cell containing a tab, a newline or a quote
round-trips instead of pasting as two rows, and
parseClipboardTextreads the quoted fields Excel, Sheets and LibreOffice produce. coerceValueaccepts finite decimals only.num.tryParseread0x10as 16 andNaNas a double, so pasting either stored a value nobody typed- and
numberRangecalled NaN valid, because NaN compares false against every bound. UseparseDecimalfor the same rule elsewhere.
- and
pageCountis 1 while grouped. Grouping needs every matching row, so paging has nothing to turn; the grid used to advertise pagesnextPagecould not reach.- Two columns sharing a field throw.
columnsByFieldkept one of them, so the other lost its filters, its sort and its editing with no error anywhere. moveColumncounts display positions. With a hidden column present,moveColumn('a', 2)landed at display position 1.- Malformed JSON throws
FormatException, notTypeError. One corrupt entry in a saved view is skipped with a warning rather than taking the whole view with it; passwarnings:toGridViewState.fromJsonto collect what was dropped. A document from a future schema version is still refused. DataGridRow.sourceIndexis the row's position in the source, for grouped and tree rows as well. It used to report the position in the sorted result, which is a different number as soon as anything is sorted, and -1 for every grouped row.countDistinctno longer counts null, andsum/averageignore text readingNaNorInfinity, which used to make every total over the column NaN.ColumnStats.meandivides by the numbers it added up rather than by every non-null value, so[10, 'n/a']averages 10 and not 5.GridColumn.copyWithhas aclearflag per nullable field. There was no way to remove a callback, so a column with asetValuecould never be made read-only. Changingfieldalso regenerates the defaultMapaccessor instead of quietly reading the old field.- A listener that throws no longer stops the listeners after it, in both
GridChangeNotifierandFetchSignal. Every listener runs and the first error is rethrown afterwards. setDataSourceresets what belonged to the old source: its lazily loaded groups and tree children, its errors, writes in flight, which detail panels were open, and the undo history.- Smaller:
moveToNextEditableCellreturns null on a source that cannot save (asbeginEditalready did); an out-of-range read onDetailRowListthrows aRangeErrorinstead of returning a phantom row;restoreStateemitsGridChange.layout;GridQuery.needlefolds accents; a humanised title keeps an acronym whole (HTTPStatus→HTTP Status).
Fixed #
Data integrity:
- Editing one of two equal rows wrote to the other:
InMemoryDataSourcelocated the row withindexOf, which uses==, so records and freezed/equatable models were indistinguishable. Rows are located by identity, and a batch write builds one identity index instead of scanning per row. - A write finishing wiped a newer write to the same row, so the cell went back to the older value while the newer one was still in flight. Pending writes are stamped with the write that owns them.
- A refused write was never rolled back on a model whose setter mutates in place: dropping the optimistic overlay put the overlay back, not the row. The previous values are captured before the setters run and replayed on failure.
- Undo resolved rows by scanning what was on screen, so a row on another
page, inside a closed group or filtered out of view was skipped - and the
step had already moved to the redo stack, which made that edit permanently
unrepeatable. Rows resolve through the source, the history only moves when
something was written, and
lastReplayreports what was applied. - Lazy group loads answered whichever query happened to be current when they landed, so a search typed while loads were in flight showed every pre-search row. Loads carry the fetch token and a source generation.
- Date filters could not be JSON-encoded at all (
jsonEncodethrew), and with atoEncodablethey came back as strings and compared against instants by accident. Operands carry their type:{"$date": "<iso>"}.
Crashes, hangs and stuck state:
- A deep tree overflowed the stack at ~4,500 levels expanded, and at ~20,000 collapsed. Flattening, root-marking and path collection use an explicit stack.
dispose()left a debounced refresh pending for the life of the isolate, and a direct refresh did the same to a coalesced one it overtook.- A source that maps an aborted request onto
FetchCancelledleftisLoadingtrue for good. - A grouped export with zero columns threw a
RangeErrorfromList.filled(-1). - A filter on a removed column hid every row, with no header left to clear it
from. Filters, sorts and groupings whose field the grid no longer has are
left out of the query and kept in state, so putting the column back brings
the filter back;
inactiveFieldssays which are parked.
Wrong state:
reload()never refetched a lazy tree's children.- An optimistic edit was invisible in tree and grouped views.
- After a failed fetch, the counts and aggregates described rows that were
gone.
isStalesays when the rows on screen are left over. - The page index was not clamped when the data shrank, so the grid showed nothing while rows sat on an earlier page.
- Group expansion leaked between grouping fields; group headers ignored the
column's comparator (High/Medium/Low sorted alphabetically); the blank group
jumped to the top when the headers were reversed (
GroupSpec.nulls). - A cell range outlived the rows it covered, and
CellRange.containsdisagreed withcoveredFieldsonce a field disappeared. - A selected group header drifted onto another group when one above it collapsed.
ColumnFit.stretchdumped the whole remainder on the last column; it fills like water now -[110, 245, 245], not[110, 200, 290].- Copying a selection with a group header in it emitted a blank row; a paste across one dropped a row of the user's data instead of skipping to the next data row.
- A grouped CSV export indented every cell, so numbers became text.
- Committing a value the user had not changed still wrote to the server and refetched.
- A nested tree's children never saw the sort;
flattenNestedRowsconverts a nested model into the flat rows and parent references the pipeline can filter, search and sort in full. betweenwith its bounds typed backwards matched nothing; a filter operand is coerced to the column's type, so'50'in a number column compares as 50;isInconditions andFilterGroups have value equality;compareValuesNaturalorders digit runs longer than anint64;compareValuesCaseInsensitivefolds the accents its doc always claimed to.
Performance #
Measured on one M4 laptop, median of 7 runs, against 0.3.0 on the same
machine. The benchmark gained a probe for each of these, with ceilings in
benchmark/budgets.dart, because the old gate missed every one of them.
| operation | 0.3.0 | 0.4.0 |
|---|---|---|
isIn over 1,000 values, 50k rows |
1,920 ms | 6.2 ms |
| natural sort, 50k rows | 2,405 ms | 46 ms |
| edit one cell with a search and a sort, 50k | 88 ms | 0.7 ms |
| the same at 200k | 371 ms | 3.5 ms |
| group toggle, 200k rows | 45 ms | 0.07 ms |
| conditional formatting, 40 x 200 cells | 13.5 ms | 1.2 ms |
| flatten a 4,000-deep tree | 110 ms | 2.4 ms |
| select-all, 1M rows | 109 ms | O(1) |
| read the scrollable band, 50k rows | 4.5 ms | 0.04 ms |
How: filters compile once per query rather than per row (pre-folded needles,
a HashSet for isIn, operands coerced); an expensive ordering computes one
key per row (GridColumn.sortKey, naturalSortKey); an edited row is
patched into each memoised stage instead of invalidating all of them, which a
randomised differential test holds to the same answer as a full recompute;
a grouped result is a GroupedRowList over an index of the groups, so a
toggle costs the groups and not the rows; select-all is a flag with a set of
exceptions; the frozen bands are views (RowSlice) rather than copies;
sourceIndex resolves on demand; and the column map is cached.
The README's claim of "~100k rows inside a frame budget" was never measured at 100k and was not true. It now says what the benchmark says: everything fits in a frame to about 20k, sorting and a whole-table search cross it between there and 100k, and past 100k the work belongs in a database.
Added #
foldText,compareValuesFolded,valuesEqualFolded,naturalSortKey,defaultCompareFor,sortOrder.GridColumn.sortKeyandsortValue: the value a column orders by, computed once per row per sort.Filter.compileandCompiledFilter, withcompileCondition,coerceFilterOperand,encodeFilterOperand/decodeFilterOperandandpruneFilter.FilterCondition.dateOnlymakesequalson a date column mean the day rather than the instant.DistinctValues;LatticeDataSource.localRowsandcolumnTypes.GroupedRowList,RowSlice,GroupNode.mapRows,groupPathSegment,pathKeySegment,GroupSpec.nulls.flattenNestedRowsandNestedRows;flattenTreetakes achildComparator, asubstituteand asourceIndexOf.GridController.treePathFor,inactiveFields,isStale,lastReplay,loadedRowCount.EditHistory.peekUndo/peekRedo/commitUndo/commitRedoandReplayOutcome, so an action is applied before the history moves.SelectionState.isEverythingSelectedandfollowedRows;CellRange.clampedTo.ExportOptions.respectCollapsed;parseDecimal;GridViewState.groupsExpandedByDefault;ColumnStats.numberCount;GridResult.sourceIndexOf.
Not fixed #
- Search and filtering still only see the rows a data source holds, so a
nested (
childrenOf) tree matches on its roots.flattenNestedRowsis the supported route, and keeping the ancestors of a match is still to come. GroupSpecandAggregationcompare their closures by identity, which is all Dart offers for a function. A spec built inline on every rebuild misses the pipeline cache every time; hoist the closure to a static or top-level function. The doc comment claiming otherwise has been corrected.
0.3.0 #
The release that makes the engine's own structure sound: identity instead of position, stated capability instead of inferred type, and a notification that says what changed. Five confirmed bugs are fixed with their causes, not their symptoms, and the API is trimmed before 1.0 makes it a promise.
Breaking #
Each of these is a compile error or a one-line change, not a redesign.
beginEditreturns null when the data source cannot save. A column with a setter is no longer editable on a source with nowhere to put the write; passonCommit:toAsyncDataSource, or implementcanCommitandcommit. Refusing at the door is deliberate: the alternative is the user finding out after typing.visibleColumns,visibleFieldsandexportCsvreport screen order, which differs from declaration order once a column is pinned.ColumnFit. lastColumngrows the last column on screen for the same reason. A grid with no pinned columns sees no change.GroupSpecequality includeskeyOf,labelOfandblankLabel. Two specs that bucket rows differently used to compare equal, which is the bug that made regrouping serve stale buckets; code relying on that was relying on the bug.GridRowhas a new variant,DetailGridRow. An exhaustiveswitchover rows needs a case for it. The compiler names every site.- The pipeline helpers moved to
package:lattice_core/advanced.dart:sortRows,buildComparator,buildGroups,flattenGroups,collectGroupPaths,flattenTree,rootsOf,collectTreePaths,computeAggregates,computeColumnStats,describeHeaderProblems, and the implementation typesLazyDataRowList,DetailRowList,FloatListandFloat64ListLike. Change the import; nothing was renamed.RowMetrics,layoutHeaderRow,computeLayoutandorderColumnsForDisplaystay in the everyday library, because an adapter cannot draw without them. GridQuery.toJsonandGridViewState.toJsoncarry"v": 1. Readers accept a document without it as version 1, so views saved by 0.2.x still restore; a document from a future version is refused with aFormatExceptionrather than misread.
Foundations #
- Rows can be identified rather than located.
GridController.rowKeymakes the selection, the active cell and an open edit session follow their rows through a sort, a filter or a background refresh. - One display order.
orderColumnsForDisplayresolves the panes, andcomputeLayoutuses it, so the layout, keyboard navigation, range selection and the export cannot disagree about which column is next to which. - Cache keys come from each spec.
SortSpec.fingerprint,Aggregation.fingerprint,GroupSpec.fingerprintand oneGridQueryfingerprint per pipeline stage replace keys assembled by their callers out of the fields they remembered. - Sources declare what they can do.
isSynchronous/fetchSync,canCommit,providesStats,providesDistinctValues,hasMore,supportsLazyGroupsandsupportsCancellation, gathered intoSourceCapabilities. The engine no longer askssource is InMemoryDataSource: any synchronous source gets the in-frame path, and an adapter can stop offering what a source cannot honour. - Notifications say what changed.
GridChangeandaddChangeListenerlet an adapter repaint only what a change touched - clicking a cell no longer looks like a new set of rows - and a batch notifies once for the union of what it did.addListenerstill works and can readlastChanges. - Invariants are tested against random arrangements. 120 generated combinations of sorting, filtering, searching, grouping, paging, pinning and hiding, checked against the rules that have to hold for all of them. Three of them fail if the display-order bug is put back.
- The benchmark runs in CI, publishes its table to the job summary, and
fails the build on a breach of the ceilings in
benchmark/budgets.dart.
Fixed #
- Column order followed the column list, not the screen. Pinning moves a
column on screen without moving it in the list, so arrow keys skipped
columns, a range selection covered cells that were not next to each other,
and a CSV export's header did not match the header the user was looking at.
orderColumnsForDisplayresolves the panes, andvisibleColumns,visibleFieldsandexportCsvread it. - A selection followed the screen position, not the row. Indices are what
an adapter renders, so selecting a row and then sorting left the selection
on whatever row had moved into that slot - and a background refresh of an
async source could move it silently.
GridController.rowKeymakes rows recognisable; the selection, the active cell and an open edit session are rewritten to wherever their rows went. - The group cache ignored
keyOfandlabelOf. The memo key wasfield:direction, so regrouping the same field with a different bucketing function served the previous buckets.GroupSpec.fingerprintcarries both, andGroupSpecequality no longer claims two differently bucketed specs are the same. - Edits to anything but an in-memory source were lost.
commitEditinvalidated the source and let the grid re-fetch, which threw the new value away: the commit reported success and the cell went back to the old text. See the write path below.
Added #
- A write path on
LatticeDataSource.canCommit,commit(original, updated)andcommitAllfor a batch. The controller applies a write optimistically, keeps it across the re-fetch that follows, and rolls it back withwriteErrorset if the source throws.beginEditrefuses a source that cannot save, so the user learns before typing rather than after. - Cancellation and debounce.
GridQuery.signalis aFetchSignalthe grid cancels when a newer query supersedes the fetch, so a source can abort the request instead of running it to completion for an answer nobody will read.fetchDebouncefolds the interactions a user drives a character at a time - the search box, the filter row - into one request, for non-local sources only. - Server-side and lazy grouping.
GridQuery.lazyGroupsasks a source that can for group headers and counts alone, andfetchGroupChildrenresolves a group when the user opens it. Grouping no longer means downloading every matching row. - Saved views.
GridViewStatecarries the ordering, the filters, the search, the grouping, which groups are closed, the page, and the column widths, order, pinning and visibility, as plain JSON.saveState/restoreStateapply it in one query, andGridQuery.fromJsonandGroupSpec.fromJsoncomplete the round trip. - Paste into a cell range.
pasteTextis the inverse ofcopySelectionAsText: it parses the text, coerces each cell into its column's type, validates it, and writes the block as one change - all or nothing by default. - Undo and redo.
undo(),redo()and a boundedEditHistoryover committed edits. History is per cell, so it works for an in-place row model as well as an immutable one, and per action, so a paste comes back in one step. - The filter metadata
ColumnTypealready promised.operatorsFor(ColumnType)ships the operator set, withneedsValue,needsSecondValueanddefaultLabelfor the control beside it.distinctValuesFor(field)gives a checkbox filter its values, cached likestatsFor.GridResult.statslets a remote source supply the ranges conditional formatting needs - a data bar over a server-paged column drew nothing before. - Auto-sizing.
autoSizeColumn(field, measure:)andautoSizeColumnssample the rows and ask the caller to measure the text, which is the one thing the engine cannot do itself. - Tree data.
TreeSpec, with eitherchildrenOffor a nested model orparentOffor a flat table with a parent reference, shows rows as a hierarchy - an org chart, a file browser, a bill of materials - as distinct from grouping, whose parents are invented from a shared value. Aggregation.format, so a count of prices can read as a number of rows and a sum as an amount of money.movePages,moveToLineEdge,moveToGridEdgeandmoveToNextEditableCell: PageUp/PageDown, Home/End and Tab-to-next-editable as engine behaviour rather than arithmetic in a widget.keepRowsOnError, off by default, keeps the last good rows on screen when a poll fails instead of blanking the grid.- Loading more instead of paging (#25).
loadMoreSizeturns the grid into an accumulating list: the first fetch asks for one slice and eachloadMore()appends another, withcanLoadMorefalse while a request is out so a scroll that reaches the end twice asks once. Changing the ordering or the filter starts again from one slice.reload()is what pull to refresh means. - Detail panels (#14).
DetailGridRowis a row in the flat list, so virtualization and the frozen bands count it, and its height is stated rather than measured because a prefix-sum table cannot wait for a layout pass.toggleDetailis keyed by row identity, so a sort cannot move a panel onto another row, and an open panel does not cost a 50k-row materialisation. - Lazily loaded tree children (#15).
TreeSpec.childrenLoaderfetches a branch when it is opened,hasChildrendraws the control before the children exist, a loading branch says so rather than looking empty, and one that fails reports throughchildrenErrorwithout being retried every frame. GroupSpec.blankLabel(#28), so the one piece of user-visible text the engine owns can be given in any language. It is a field rather than a lookup becauselattice_coremust not grow a dependency on anyone's localisations; the validator messages have always taken theirs the same way.
0.2.0 #
New API, nothing removed or renamed.
Stacked headers #
Header rows that span several columns, for grids where columns belong together — four quarters, a street/city/postcode address.
HeaderBandnames the fields it covers rather than a column range, so it follows a reorder, narrows when a column is hidden, and splits correctly across a frozen pane.layoutHeaderRowresolves a row against one pane's columns, handling bands split across panes, bands interrupted by a moved column, and columns no band covers.describeHeaderProblemsreports unknown fields, doubly-covered columns and empty bands;GridController.stackedHeadersruns it in an assertion, so a typo is loud in development and harmless in production.
Frozen rows #
frozenRowCount and frozenRowCountBottom pin rows to the top and bottom.
Pinning is by position, not identity: sort the grid and the pinned rows
are whatever now sorts first, which is what "frozen" should mean. The two
bands together are capped at one row fewer than the grid holds, so freezing
can never leave nothing to scroll — effectiveFrozenTop and
effectiveFrozenBottom report what you actually got.
Selection coverage #
SelectionCoverage (none / some / all) behind a tri-state select-all,
toggleSelectAll, and setRowSelected for toggling one row without
replacing the selection the way a click does. Coverage counts only rows that
still exist, so indices stranded by a filter cannot make a partial selection
look complete.
Also #
homepagein the pubspec, and adart doccheck in CI so a broken reference in a doc comment fails the build rather than quietly degrading the published API documentation.- Corrects the 0.1.0 entry below, which filed the export hardening and the conditional formatting API under "Unreleased" when both in fact shipped in 0.1.0. A published archive is immutable, so the correction appears here.
0.1.0 #
First release. The complete grid engine in pure Dart, with no dependency on Flutter or any other UI toolkit.
Core #
GridColumn: typed accessors, formatters, comparators, width bounds, pinning, visibility, edit hooks and conditional formatting rules.GridController: owns query state, selection, group expansion and the edit session, and exposes the flat row list an adapter renders.GridQueryandGridResult: one description of what the grid wants, whichInMemoryDataSourceexecutes locally andAsyncDataSourcehands to a server. Fetches are token-guarded, so a slow response from an earlier query cannot overwrite a newer one.
Data operations #
- Sorting: multi-column, stable, custom comparators, explicit null placement that does not flip with the direction.
- Filtering: a serialisable condition/group tree with 16 operators, plus
free-text search across visible columns. Half-filled conditions report
isEmptyand are dropped rather than hiding every row. - Grouping: nested levels, derived group keys, and expansion keyed by a key path so it survives re-sorting, re-filtering and reloads.
- Aggregation: sum, average, min, max, count, distinct count and custom
reducers, per group and grid-wide. Numeric aggregates skip nulls like SQL,
so an all-null group yields
nullrather than a misleading0.
Presentation support #
- Conditional formatting:
DataBarRule,ColorScaleRule,ThresholdRule,ValueToneRule, andFirstMatchRule/MergedRuleto compose them. Rules emit a semanticCellToneand an intensity rather than a colour, so one rule set reads correctly in light and dark. ColumnStats: per-column range, computed over the rows that currently match so data bars rescale with the filter.- Virtualization: uniform and variable row heights, scroll-to-reveal, and column windowing for wide grids.
- Layout: leading / scrolling / trailing panes for frozen columns, with stretch and last-column fit.
- Selection: single and multi row, single cell and rectangular ranges, with ctrl / shift semantics owned by the engine, addressed by field so a selection survives columns being reordered or hidden.
- Editing: validated sessions with commit and rollback. A rejected commit keeps the session open with its error instead of discarding what was typed.
Export #
- RFC 4180 CSV, grouped CSV, and tab-separated clipboard text.
- Formula injection is neutralised by default. A value beginning
=,+,-,@, tab or carriage return is executed when the file is opened in Excel, Sheets or LibreOffice, so such values are prefixed to be read as text. The prefix goes inside the RFC 4180 quotes, and detection looks past leading spaces, which spreadsheets trim on import and a grouped export adds as indentation. Turn it off withExportOptions.sanitizeFormulas: falsefor a machine-read export that must round-trip exactly.
Performance #
Measured at 50k rows with dart run benchmark/grid_benchmark.dart:
- The pipeline is memoised in three stages — matched, ordered, grouped — each keyed by data revision and by the part of the query it depends on. A page change costs 0.01 ms instead of 45 ms; reversing a sort no longer re-filters.
- Quick search runs against a prebuilt per-row index and narrows within the previous match as you type: 6.5 ms per keystroke instead of 60 ms.
- Sort keys are extracted once per row rather than inside the comparator, and a single-column sort compares without type tests: 28 ms instead of 104 ms.
- An ungrouped row list is materialised lazily, so a 50k-row grid no longer allocates 50k wrapper objects whenever anything changes.
Grouping, filtering, paging, expansion and scroll lookups all sit inside a
16.7 ms frame at 50k rows. A large sort does not, and is documented as such:
beyond roughly 50k rows, sort through an AsyncDataSource.
