Skip to content

[Bug]: Clicking the Accounts list has a serious delay in response. #23913

@cyhhao

Description

@cyhhao

Describe the bug

When I click Accounts at the top, it takes a long time for the Accounts List to appear. I have 28 accounts, which is not too many.

I used Chrome's performance analysis and found the following problems:

Expected behavior

No response

Screenshots/Recordings

image

Steps to reproduce

  1. Own some Accounts and add some Networks
  2. Click Metamask and the home page will appear.
  3. Click the Accounts toggle button at the top

Error messages or log output

Based on the performance analysis above, I guess the problem lies in the getAddressConnectedSubjectMap function which is very time consuming and can be analyzed using this function as the entry point.

After tracing it, I found that the root cause seemed to be the unstable_runWithPriority function.

But I am not familiar with the Metamask code, and further debugging is difficult. I hope to get your help.

Thanks

Version

11.13.1

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev2-normalNormal severity; minor loss of service or inconvenience.external-contributorregression-prod-11.13.1Regression bug that was found in production in release 11.13.1release-11.16.0Issue or pull request that will be included in release 11.16.0team-core-extension-uxCore Extension UX teamtype-bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions