1 - The loop inside `createAccounts` can be parallelized using `Promise.all` ```ts await Promise.all(indicesToCreate.map(async (groupIndex) => { ... }); ``` 2 - Instead of`#listAccounts()` it could use an "index cache" and avoid deserializing the entire `keyringAccounts` blob ```ts const keyringAccounts = (await this.#state.getKey<UnencryptedStateValue['keyringAccounts']>( 'keyringAccounts', )) ?? {}; for (const account of Object.values(keyringAccounts)) { ... } ```
Activity
[-]Performance improvements[/-][+][solana-wallet-snap] Performance improvements[/+]Merge pull request #111 from MetaMask/refactor/rebuild-tx-expiry-for-…