-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improve performance in account list and account connection components #23933
Conversation
00b7bdd
to
acded48
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #23933 +/- ##
===========================================
- Coverage 67.54% 67.52% -0.02%
===========================================
Files 1245 1245
Lines 48864 48869 +5
Branches 12744 12742 -2
===========================================
- Hits 33003 32995 -8
- Misses 15861 15874 +13 ☔ View full report in Codecov by Sentry. |
Builds ready [e80f64e]
Page Load Metrics (1550 ± 513 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [a6e4dfc]
Page Load Metrics (1465 ± 542 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Verified locally, everything works
Description
Improves performance in the account list and "account connection" components by no longer leveraging
getAddressConnectedSubjectMap
. The selector in question is very computationally expensive to use and thus were causing performance problems for users with many accounts and many connected sites. This PR proposes usinggetPermittedAccountsForCurrentTab
where possible and also introduces a memoized selectorisAccountConnectedToCurrentTab
that performantly can check for a given address.From local testing this seems to improve the experience.
Related issues
Fixes #23913