Commit ae9937b
## **Description**
This [PR](#16926) is
originally from @Nodonisko from Margelo
This PR uses new faster memoized functions for working with address
checksum.
There is already significant boost in AccountList performance and it
should be even better when MetaMask/core#6054 is
released and also when we fix Blockies Avatars.
## **Related issues**
Fixes: #15560
## **Manual testing steps**
1. Open Account List
2. It should feel faster than before
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
You can set that before then was lot of interrupted work before Account
List modal is even displayed. It takes around ~7s from click to modal to
be actually visible.
<img width="1324" alt="Screenshot 2025-07-03 at 21 36 06"
src="https://github.com/user-attachments/assets/7c624f31-db84-4ade-9df6-a116bff9a68f"
/>
### **After**
Here it takes only around ~3s to mount. (still slow but much better than
before)
<img width="1325" alt="Screenshot 2025-07-03 at 21 38 16"
src="https://github.com/user-attachments/assets/96a5a4f1-59b7-4cfa-b58c-ac84eb238654"
/>
## **Pre-merge author checklist**
- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry:
## **Related issues**
Fixes:
## **Manual testing steps**
1. Go to this page...
2.
3.
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Co-authored-by: Daniel Suchý <suchydan@gmail.com>
1 parent 09d0237 commit ae9937b
File tree
524 files changed
+7459
-32403
lines changed- .github
- workflows
- .storybook
- android/app
- app
- actions/multiSrp
- component-library
- components-temp
- KeyValueRow/__snapshots__
- Price
- AggregatedPercentage/__snapshots__
- PercentageChange/__snapshots__
- components
- MultichainAccounts/MultichainAddressRow
- __snapshots__
- components
- Snaps/SnapUIRenderer/__snapshots__
- UI
- AccountFromToInfoCard/__snapshots__
- AddCustomToken
- __snapshots__
- AddressInputs/__snapshots__
- AssetElement
- __snapshots__
- AssetIcon
- AssetOverview
- Balance/__snapshots__
- __snapshots__
- AssetSearch
- __snapshots__
- Bridge/components/QuoteDetailsCard/__snapshots__
- BrowserBottomBar/__snapshots__
- BrowserUrlBar/__snapshots__
- Carousel/__snapshots__
- CollectibleContractElement
- __snapshots__
- CollectibleContracts
- Collectibles/__snapshots__
- DeFiPositions
- DeleteWalletModal/__snapshots__
- Earn
- LendingLearnMoreModal/__snapshots__
- Views
- EarnInputView/__snapshots__
- EarnLendingDepositConfirmationView
- __snapshots__
- components/DepositInfoSection/__snapshots__
- EarnLendingWithdrawalConfirmationView/__snapshots__
- EarnWithdrawInputView/__snapshots__
- components
- EarnDepositTokenListItem/__snapshots__
- EarnLendingBalance/__snapshots__
- EarnTokenList/__snapshots__
- EarnTokenSelector/__snapshots__
- Earnings
- EarningsHistory/EarningsHistoryChart/__snapshots__
- __snapshots__
- EmptyStateCta/__snapshots__
- EditGasFee1559/__snapshots__
- EditGasFeeLegacy/__snapshots__
- HintModal/__snapshots__
- Identity/ConfirmTurnOnBackupAndSyncModal/__snapshots__
- ImageIcon
- NetworkCell
- __snapshots__
- Notification
- BaseNotification/__snapshots__
- List
- NotificationMenuItem/__snapshots__
- OptinMetrics
- __snapshots__
- PaymentRequest/__snapshots__
- PermissionsSummary
- Perps
- Views
- PerpsDepositAmountView
- PerpsMarketListView
- components
- PerpsCandlestickChart
- PerpsConnectionErrorView
- PerpsDepositPreviewModal
- PerpsLoader
- PerpsMarketRowItem
- PerpsPayWithRow
- PerpsPositionCard
- PerpsQuoteDetailsCard
- PerpsQuoteExpiredModal
- PerpsSlippageModal
- PerpsTokenSelector
- constants
- controllers
- providers
- types
- hooks
- providers
- routes
- services
- utils
- Ramp
- Aggregator
- Views
- OrderDetails/__snapshots__
- OrdersList/__snapshots__
- Quotes/__snapshots__
- Regions/__snapshots__
- Settings/__snapshots__
- components/OrderListItem/__snapshots__
- Deposit
- Views
- BankDetails
- BasicInfo
- __snapshots__
- BuildQuote
- DepositOrderDetails
- __snapshots__
- EnterAddress
- __snapshots__
- EnterEmail/__snapshots__
- KycProcessing
- __snapshots__
- Modals
- TokenSelectorModal
- __snapshots__
- WebviewModal
- OrderProcessing
- __snapshots__
- OtpCode
- __snapshots__
- Root/GetStarted/__snapshots__
- VerifyIdentity/__snapshots__
- components
- DepositDateField/__snapshots__
- DepositOrderContent
- __snapshots__
- DepositPhoneField/__snapshots__
- constants
- hooks
- sdk
- utils
- ReceiveRequest/__snapshots__
- SearchTokenAutocomplete
- __snapshots__
- Stake
- Views
- StakeConfirmationView/__snapshots__
- StakeEarningsHistoryView/__snapshots__
- UnstakeConfirmationView/__snapshots__
- components
- PoolStakingLearnMoreModal
- InteractiveTimespanChart
- DataGradient/__snapshots__
- __snapshots__
- __snapshots__
- StakingBalance
- StakingBanners/ClaimBanner/__snapshots__
- StakingCta/__snapshots__
- __snapshots__
- StakingConfirmation
- RewardsCard/__snapshots__
- UnstakeTimeCard/__snapshots__
- YouReceiveCard/__snapshots__
- StakingEarnings/__snapshots__
- UpsellBanner/__snapshots__
- Swaps
- Tabs
- Tokens
- TokenList/TokenListItem
- TransactionElement
- TransactionDetails
- __snapshots__
- Transactions
- Views
- AccountActions
- AccountBackupStep1B/__snapshots__
- AccountBackupStep1
- AccountStatus
- ActivityView
- AddAccountActions
- __snapshots__
- AddAsset
- __snapshots__
- Asset
- __snapshots__
- BrowserTab
- ChoosePassword
- __snapshots__
- ImportFromSecretRecoveryPhrase
- ImportPrivateKeySuccess/__snapshots__
- ImportPrivateKey/__snapshots__
- Login
- __snapshots__
- ManualBackupStep1
- ManualBackupStep2
- MultichainTransactionsView
- NetworkSelector
- __snapshots__
- Notifications/Details/__snapshots__
- OnboardingSheet/__snapshots__
- OnboardingSuccess/OnboardingAssetsSettings
- __snapshots__
- Onboarding
- OriginSpamModal/__snapshots__
- QRAccountDisplay/__snapshots__
- ResetPassword/__snapshots__
- RevealPrivateCredential
- __snapshots__
- Settings
- Contacts/ContactForm/__snapshots__
- IncomingTransactionsSettings
- __snapshots__
- NetworksSettings
- __snapshots__
- SecuritySettings
- __snapshots__
- SuccessErrorSheet/__snapshots__
- TransactionsView
- Wallet
- confirmations
- components
- UI/Tooltip/__snapshots__
- modals/switch-account-type-modal/account-network-row
- rows/transactions/hero-row
- hooks/nft
- legacy
- Approval/__snapshots__
- SendFlow
- AddressTo/__snapshots__
- Amount
- __snapshots__
- Confirm
- __snapshots__
- components/CustomGasModal/__snapshots__
- SendTo/__snapshots__
- components/CustomNonceModal/__snapshots__
- components
- Approval/TemplateConfirmation/Templates/__snapshots__
- EditGasFeeLegacyUpdate/__snapshots__
- SignatureRequest
- ExpandedMessage/__snapshots__
- Root/__snapshots__
- TransactionReview
- TransactionReviewEIP1559Update/__snapshots__
- TransactionReviewEIP1559/__snapshots__
- __snapshots__
- constants
- core
- Authentication
- EngineService
- Engine
- controllers
- identity
- network-controller
- perps-controller
- transaction-controller
- messengers
- identity
- perps-controller-messenger
- Multichain
- test
- OAuthService
- SnapKeyring
- utils
- images
- selectors
- multichainNetworkController
- multichain
- store/migrations
- util
- logs/__snapshots__
- networks
- sentry
- __snapshots__
- test
- docs/readme
- e2e
- api-mocking/mock-config
- api-specs
- fixtures
- framework
- fixtures
- pages
- Browser
- Common
- Network
- Onboarding
- Settings
- wallet
- resources
- seeder
- selectors
- Browser
- Network
- Onboarding
- Perps
- Settings
- wallet
- specs
- accounts
- aes
- assets/multichain
- browser
- confirmations-redesigned
- signatures
- transactions
- 7702
- identity
- account-syncing
- utils
- user-storage
- multichain/permissions/chains
- quarantine
- swaps
- helpers
- wallet
- ios/MetaMask.xcodeproj
- locales/languages
- patches
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
524 files changed
+7459
-32403
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
| 190 | + | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
| |||
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 46 | | |
65 | 47 | | |
66 | 48 | | |
| |||
99 | 81 | | |
100 | 82 | | |
101 | 83 | | |
102 | | - | |
103 | | - | |
| 84 | + | |
104 | 85 | | |
105 | 86 | | |
106 | 87 | | |
| |||
122 | 103 | | |
123 | 104 | | |
124 | 105 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 106 | + | |
130 | 107 | | |
131 | 108 | | |
132 | 109 | | |
| |||
154 | 131 | | |
155 | 132 | | |
156 | 133 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 134 | | |
224 | | - | |
225 | 135 | | |
226 | 136 | | |
227 | 137 | | |
| |||
234 | 144 | | |
235 | 145 | | |
236 | 146 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
241 | 150 | | |
242 | 151 | | |
243 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| 19 | + | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
30 | | - | |
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
| |||
85 | 77 | | |
86 | 78 | | |
87 | 79 | | |
88 | | - | |
89 | 80 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 81 | | |
95 | 82 | | |
96 | 83 | | |
97 | 84 | | |
98 | | - | |
99 | 85 | | |
100 | | - | |
101 | | - | |
102 | 86 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 87 | + | |
120 | 88 | | |
121 | 89 | | |
122 | 90 | | |
123 | 91 | | |
124 | 92 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 93 | | |
137 | | - | |
| 94 | + | |
138 | 95 | | |
139 | 96 | | |
140 | | - | |
| 97 | + | |
| 98 | + | |
141 | 99 | | |
142 | | - | |
143 | 100 | | |
144 | 101 | | |
145 | 102 | | |
| |||
0 commit comments