Skip to content

Conversation

@hiroshihorie
Copy link
Member

Cache Session.messages as an UnmodifiableListView and refresh it only when the underlying map changes, instead of recreating a new unmodifiable list on every getter call. This keeps the data immutable but gives widgets a stable reference, reducing unnecessary rebuilds.

@hiroshihorie hiroshihorie changed the title Fix session messages Minor session messages optimization Dec 2, 2025
@hiroshihorie hiroshihorie merged commit b0081d4 into main Dec 2, 2025
16 checks passed
@hiroshihorie hiroshihorie deleted the hiroshi/session-optimize-1 branch December 2, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants