0xProject / 0x-monorepo

0x protocol monorepo - includes our smart contracts and many developer tools
Other
1.41k stars 464 forks source link

[abi-gen] [base-contract] Crypto algorithms blocking javascript main thread #2745

Closed AoDev closed 3 years ago

AoDev commented 3 years ago

Current Behavior

While technically not a bug, we currently have some dramatic issues on the frontend side because crypto algorithms are blocking the javascript main thread. This results in relatively bad UX when the UI becomes unresponsive during the calls.

One specific situation is when we are instantiating contracts when the provider changes.

Expected Behavior

No blocking UI / JS main thread.

Possible Solution

Maybe there is something that can be done on the abi-gen side? Have you already a solution for this? Maybe these calls could run in web workers.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed because no activity occured in 7 days after being marked as stale. If it's still relevant - feel free to reopen. Thank you for your contributions.