Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Question on expected time for browser computation #53

@0xalank

Description

@0xalank

When running MetaMask and attempting to create a bulk group of secp256k1 addresses, my browser is spending a lot of time computing the comb10MulTo (10 seconds on 123 addresses / ~50% total runtime) that is downstream of the addAccounts used in the eth-hd-keyring package.

Has anyone here run into this when bulk generating addresses in the browser using eth-hd-keyring? Running the program outside of the browser takes 2.43ms for 100 address via the test methods.

I understand that the browser computation will be slower but is 500x slowness expected?

CallTrace for reference:
Screen Shot 2021-11-17 at 11 46 58 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions