Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huge memory usage when building a transaction in browser env #252

Open
zhfnjust opened this issue Sep 16, 2022 · 1 comment
Open

huge memory usage when building a transaction in browser env #252

zhfnjust opened this issue Sep 16, 2022 · 1 comment

Comments

@zhfnjust
Copy link

building some transaction with large script like below cause a huge memory usage :
https://classic-test.whatsonchain.com/tx/5c9fc415c7791d528be0cc715ac893786d2f42098fd7f6b3a79906e4d39d000c

Can we optimize the code to reduce memory usage

image

@mathiasrw
Copy link
Contributor

You should avoid signing large transactions in the main thread, and instead use webworkers to do the heavy lifting.

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

No branches or pull requests

2 participants