Skip to content

Conversation

@Nodonisko
Copy link
Contributor

@Nodonisko Nodonisko commented Jul 3, 2025

Description

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

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.

Screenshot 2025-07-03 at 21 36 06

After

Here it takes only around ~3s to mount. (still slow but much better than before)

Screenshot 2025-07-03 at 21 38 16

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.

@Nodonisko Nodonisko requested review from a team as code owners July 3, 2025 19:52
@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 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.

cursor[bot]

This comment was marked as outdated.

@Nodonisko Nodonisko force-pushed the chore/faster-checksum branch from 6fc3deb to 997387c Compare July 3, 2025 19:57
cursor[bot]

This comment was marked as outdated.

darkwing
darkwing previously approved these changes Jul 4, 2025
@tommasini tommasini changed the title chore: faster address checksum chore: cp-7.50.0 faster address checksum Jul 4, 2025
@cursor
Copy link

cursor bot commented Jul 4, 2025

🚨 BugBot couldn't run

Something went wrong. Try again by commenting "bugbot run", or contact support (requestId: serverGenReqId_fb25e5a0-d73d-4bd9-95e8-c5414c6c62f9).

@tommasini
Copy link
Contributor

tommasini commented Jul 8, 2025

@Nodonisko this PR is failing on the linter and unit tests, can you take a look please?
/home/runner/work/metamask-mobile/metamask-mobile/app/components/Views/Settings/Contacts/ContactForm/index.js
Error: 338:9 error 'toChecksumAddress' is not defined no-undef

@Nodonisko
Copy link
Contributor Author

@tommasini Should be fixed in 3921518

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

🟢 LGTM! Approving on behalf of @MetaMask/design-system-engineers

Matt561
Matt561 previously approved these changes Jul 8, 2025
Copy link
Contributor

@Matt561 Matt561 left a comment

Choose a reason for hiding this comment

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

Approving 1 owned-file on behalf of Earn team ✅

brianacnguyen
brianacnguyen previously approved these changes Jul 8, 2025
OGPoyraz
OGPoyraz previously approved these changes Jul 8, 2025
@Nodonisko Nodonisko dismissed stale reviews from georgewrmarshall and OGPoyraz via d0f3047 July 11, 2025 12:48
@Nodonisko Nodonisko requested a review from a team as a code owner July 11, 2025 12:48
@sethkfman sethkfman added the area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. label Jul 14, 2025
@Nodonisko
Copy link
Contributor Author

@tommasini @gambinish @Matt561 @infiniteflower @vinistevam @georgewrmarshall Can I ask you guys again for approval?

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

LGTM - Merging into feature branch to run tests

@Cal-L Cal-L merged commit 7fae5e5 into MetaMask:margelo/faster-address-checksum Jul 14, 2025
38 of 42 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 14, 2025
@metamaskbot metamaskbot added the release-7.52.0 Issue or pull request that will be included in release 7.52.0 label Sep 3, 2025
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

22 similar comments
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-7.52.0 on PR, as PR was cherry-picked in branch 7.52.0.

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. external-contributor INVALID-PR-TEMPLATE PR's body doesn't match template release-7.52.0 Issue or pull request that will be included in release 7.52.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EPIC]: Margelo platform performance optimizations