Skip to content

perf: accounts improvements #15194

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

Merged
merged 5 commits into from
May 7, 2025
Merged

perf: accounts improvements #15194

merged 5 commits into from
May 7, 2025

Conversation

ccharly
Copy link
Contributor

@ccharly ccharly commented May 6, 2025

Description

Caution

Requires this PR to be merged first:

Upgrade controllers to use the new accounts perf improvements, notably:

Related issues

N/A

Manual testing steps

  1. Create a Solana account
  2. It should run faster

Screenshots/Recordings

Before

After

Pre-merge author checklist

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.

@ccharly ccharly self-assigned this May 6, 2025
@ccharly ccharly added team-accounts area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. labels May 6, 2025
Copy link
Contributor

github-actions bot commented May 6, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@ccharly ccharly changed the base branch from main to chore/upgrade-assets-controller-v60 May 6, 2025 20:39
@ccharly ccharly force-pushed the perf/accounts-improvements branch from 147b1df to 74dec30 Compare May 6, 2025 20:41
Base automatically changed from chore/upgrade-assets-controller-v60 to main May 6, 2025 21:29
@ccharly ccharly force-pushed the perf/accounts-improvements branch from 74dec30 to 4802c1e Compare May 6, 2025 21:30
@ccharly ccharly marked this pull request as ready for review May 6, 2025 21:30
@ccharly ccharly requested a review from a team as a code owner May 6, 2025 21:30
@ccharly ccharly added the Run Smoke E2E Requires smoke E2E testing label May 6, 2025
Copy link
Contributor

github-actions bot commented May 6, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 4802c1e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/d8de4826-fc9a-40ab-a0d4-5b84fbb8b9d7

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@gantunesr
Copy link
Member

gantunesr commented May 7, 2025

Performance tests

Device: Samsung Galaxy A22

Ethereum account creation

// file: app/components/Views/AddAccountActions/AddAccountActions.tsx
// method: addNewHdAccount();
main perf/accounts-improvements
Test 1 2.92 secs 2.20 secs
Test 2 2.98 secs 2.39 secs
Test 3 5.36 secs 4.15 secs
Test 4 5.49 secs 4.09 secs
Test 5 3.14 secs 4.20 secs

Solana account creation

// file: app/components/Views/AddNewAccount/AddNewAccount.tsx
// method: multichainWalletSnapClient.createAccount({ ... });
main perf/accounts-improvements
Test 1 0.63 secs 0.039 secs
Test 2 0.25 secs 0.061 secs
Test 3 0.29 secs 0.11 secs
Test 4 0.36 secs 0.068 secs
Test 5 0.34 secs 0.064 secs

@ccharly ccharly linked an issue May 7, 2025 that may be closed by this pull request
@ccharly ccharly force-pushed the perf/accounts-improvements branch from 4802c1e to a8a38bc Compare May 7, 2025 14:59
gantunesr
gantunesr previously approved these changes May 7, 2025
Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good but the CI is still failing

@ccharly ccharly force-pushed the perf/accounts-improvements branch from a8a38bc to 7e834ae Compare May 7, 2025 16:26
@ccharly ccharly added No QA Needed Apply this label when your PR does not need any QA effort. Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels May 7, 2025
Copy link
Contributor

github-actions bot commented May 7, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 7e834ae
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/dbbaf52a-ab2c-4b3d-8db7-707a3d51a67f

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

sonarqubecloud bot commented May 7, 2025

@ccharly ccharly added this pull request to the merge queue May 7, 2025
Merged via the queue into main with commit 79a10c6 May 7, 2025
40 checks passed
@ccharly ccharly deleted the perf/accounts-improvements branch May 7, 2025 17:42
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2025
@metamaskbot metamaskbot added the release-7.47.0 Issue or pull request that will be included in release 7.47.0 label May 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. No QA Needed Apply this label when your PR does not need any QA effort. release-7.47.0 Issue or pull request that will be included in release 7.47.0 Run Smoke E2E Requires smoke E2E testing team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: performance degradation during account creation
4 participants