Re-derive only the live turn's transcript rows per streamed delta
ChatTranscriptRows keeps each message run's rows while the run holds the identical message objects; applyChatEvent and the controller keep untouched messages' identity. Shown-item filtering, task-notice groups and row-key ids are held per row object, and the view reads message ids once per list. Tests check the incremental path equals a full derivation across streaming, appends, shown items, cards, turn diffs and prepended pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,12 @@ timeline) in the self-time lists are measurement overhead.
|
||||
16 ms, `sliver_animated_extent` layout 250 ms inclusive over the stream.
|
||||
Every delta re-derives all rows of the transcript; only the live message
|
||||
changed. Memoise the settled rows and recompute the tail.
|
||||
Change (not yet re-benchmarked): `ChatTranscriptRows`
|
||||
(`chat_transcript_rows.dart`) keeps each message run's rows while it holds
|
||||
the identical message objects, `applyChatEvent` keeps untouched messages'
|
||||
identity, and the shown-item filter, task-notice groups and
|
||||
`ChatRowKeys` ids are held per row object. Equality with a full derivation
|
||||
is covered by `test/features/chat/conversation/chat_transcript_rows_memo_test.dart`.
|
||||
5. **Spinner during streaming**: `CircularProgressIndicator`'s controller
|
||||
getter looks up an inherited widget every frame (89 ms over the stream) on
|
||||
top of the border animation; two 60 fps animations for one running turn.
|
||||
|
||||
Reference in New Issue
Block a user