Skip to content

Conversation

@kumavis
Copy link
Contributor

@kumavis kumavis commented Apr 29, 2022

in the browser with 🌋 LavaMoat 🌋 , module initialization times went 4150ms -> 86ms for this module when this change was made

the 4s initialization of this module is by far the largest in metamask background context

image

i believe the underlying performance issue comes from a bug in v8 where there is a large slowdown when setting a field on an instance of a TypedArray subclass that has been Object.freeze'd as in SES lockdown as employed in 🌋 LavaMoat 🌋

cheers ✌️

@alex-miller-0 alex-miller-0 merged commit cc0599d into GridPlus:main Apr 29, 2022
@kumavis kumavis deleted the patch-1 branch April 29, 2022 17:06
@alex-miller-0 alex-miller-0 mentioned this pull request Apr 29, 2022
rekmarks pushed a commit to MetaMask/metamask-extension that referenced this pull request Apr 29, 2022
acria-dominik pushed a commit to acria-dominik/acriawallet-extension that referenced this pull request Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants