Skip to content

perf: skip structural sharing on the notifications query - #3320

Draft
fmguerreiro wants to merge 1 commit into
gitify-app:mainfrom
fmguerreiro:perf/skip-structural-sharing
Draft

fmguerreiro wants to merge 1 commit into
gitify-app:mainfrom
fmguerreiro:perf/skip-structural-sharing

Conversation

@fmguerreiro

Copy link
Copy Markdown

Every write to the notifications query deep-compares the whole cached tree, so marking one notification walks every notification in the inbox, and each poll pays it again. This turns structural sharing off for that query.

Trade: each poll now returns fresh objects, so every mounted row re-renders. #3319 windows the list so only the visible rows exist.

Split out of #3319, as @setchy asked.

Marking a notification froze the renderer for 8.5s on a 1274-notification inbox: every cache write deep-compared the enriched tree.
@github-actions github-actions Bot added the refactor Refactoring of existing feature label Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

1 participant