-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
feat(mobile): minor perf stuff #14264
Conversation
// cache up to 3 devices to make sure it works correctly | ||
{ size: 3 }, | ||
); | ||
export const selectAccountsByDeviceState = ( |
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.
Maybe it is missing memoization, but it feels that switching between home, assets and receive tab takes really long time. In my ios simulator it took around 5 seconds on fully discovered allseed.
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.
Hmm. Now i tried the same on different branch and it also took a long time 🤔. So maybe not related to this change, but still feels very slow.
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.
Good to know I will check what's happening.
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.
I think it's because there is quite a lot of accounts on all seed and there is no FlashList for Accounts/Receive screen.
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.
not related to any of my changes
Description
This improved performance during discovery for about ~10 FPS on iPhone. Android not measured but could be even better.
Surprisingly main issues was that memoized selector (I start to really dislike proxy-memoize because of too much magic and unpredictable performance)
Related Issue
Resolve
Screenshots: