eth-hd-keyring icon indicating copy to clipboard operation
eth-hd-keyring copied to clipboard

Question on expected time for browser computation

Open 0xalank opened this issue 4 years ago • 0 comments

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

0xalank avatar Nov 17 '21 17:11 0xalank