Skip to content
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: improve account syncing performance #27330

Merged
merged 24 commits into from
Sep 25, 2024

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Sep 23, 2024

Description

This PR adds several performance improvements and bug fixes for account syncing.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Log in with SRP
  2. Add new accounts and rename others
  3. Using another browser, log in with SRP
  4. Watch the magic happen!

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.

Copy link
Contributor

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.

Copy link

socket-security bot commented Sep 23, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/keyring-api@8.1.2 None 0 252 kB metamaskbot
npm/@metamask/profile-sync-controller@0.9.1 network 0 1.07 MB metamaskbot

🚮 Removed packages: npm/@metamask/keyring-api@8.1.0, npm/@metamask/profile-sync-controller@0.8.0

View full report↗︎

@mathieuartu mathieuartu added the team-notifications Notifications team label Sep 23, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [b84dc75]
Page Load Metrics (2081 ± 180 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21527631878619297
domContentLoaded146628662061371178
load147428742081375180
domInteractive13153633718
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -11 Bytes (-0.00%)
  • common: 1.09 KiB (0.01%)

Copy link

socket-security bot commented Sep 23, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@metamaskbot
Copy link
Collaborator

Builds ready [2721d0e]
Page Load Metrics (1754 ± 59 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint38421211685320154
domContentLoaded15872108173211555
load15962124175412259
domInteractive167036178
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -11 Bytes (-0.00%)
  • common: 1.07 KiB (0.01%)

@mathieuartu
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

<!--
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?
-->

This PR addresses the spending cap label alignment. 

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27338?quickstart=1)

## **Related issues**

Fixes: #27114

## **Manual testing steps**

1. Go to test-dapp
2. Use "Sign Permit"
3. Verify change

## **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
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.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-extension/blob/develop/.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.
@metamaskbot
Copy link
Collaborator

Builds ready [dd034a2]
Page Load Metrics (1679 ± 63 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint31721751614323155
domContentLoaded15292056165410349
load15372208167913263
domInteractive21112442411
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 37 Bytes (0.00%)
  • common: 2.46 KiB (0.03%)

@metamaskbot
Copy link
Collaborator

Builds ready [390658f]
Page Load Metrics (1666 ± 104 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint145824761665221106
domContentLoaded144724471640213102
load145024771666217104
domInteractive137030126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -11 Bytes (-0.00%)
  • common: 2.5 KiB (0.03%)

@metamaskbot
Copy link
Collaborator

Builds ready [1e7487e]
Page Load Metrics (1997 ± 174 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint156127651989358172
domContentLoaded154827151959347166
load155627831997361174
domInteractive168240199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -11 Bytes (-0.00%)
  • common: 2.5 KiB (0.03%)

@mathieuartu
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@metamaskbot
Copy link
Collaborator

Builds ready [d79d336]
Page Load Metrics (2044 ± 129 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25729611866584280
domContentLoaded167328842014266128
load168229172044268129
domInteractive176037126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -11 Bytes (-0.00%)
  • common: 2.9 KiB (0.04%)

@metamaskbot
Copy link
Collaborator

Builds ready [6276886]
Page Load Metrics (1690 ± 73 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint32920721616330158
domContentLoaded14042065166214770
load14122073169015373
domInteractive13108452713
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 13 Bytes (0.00%)
  • ui: 40 Bytes (0.00%)
  • common: 2.9 KiB (0.04%)

@metamaskbot
Copy link
Collaborator

Builds ready [d8351d3]
Page Load Metrics (1776 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16372222178116479
domContentLoaded15982212175616579
load16362224177616378
domInteractive169438209
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 13 Bytes (0.00%)
  • ui: 40 Bytes (0.00%)
  • common: 2.9 KiB (0.04%)

Copy link

@metamaskbot
Copy link
Collaborator

Builds ready [fd4ff50]
Page Load Metrics (1818 ± 106 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint149623871833232112
domContentLoaded148922271799212102
load149823121818221106
domInteractive1783442210
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 13 Bytes (0.00%)
  • ui: 40 Bytes (0.00%)
  • common: 2.9 KiB (0.04%)

@mathieuartu mathieuartu marked this pull request as ready for review September 25, 2024 09:23
@mathieuartu mathieuartu requested review from a team as code owners September 25, 2024 09:23
Copy link
Contributor

@matteoscurati matteoscurati left a comment

Choose a reason for hiding this comment

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

LGTM!

@mathieuartu mathieuartu merged commit bcfaa3e into develop Sep 25, 2024
80 checks passed
@mathieuartu mathieuartu deleted the feat/improve_account_syncing_perf branch September 25, 2024 11:33
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2024
@metamaskbot metamaskbot added release-12.6.0 Issue or pull request that will be included in release 12.6.0 release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-notifications Notifications team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants