-
Notifications
You must be signed in to change notification settings - Fork 126
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
add_change_if_needed very slow #271
Comments
Hi, @YFrendo ! Test version |
HI! Thanks for your answer I will probably wait for the 10.0.0 official release! |
@YFrendo just to confirm, you're using the asm.js not the wasm builds right? I believe the fix (#214) @vsubhuman is talking about was mostly an issue in how absurdly slow the cryptography crates we depend on can be when compiled to asm.js. I would highly recommend wasm over the asm.js if its possible for you as in general wasm is just so much faster than asm.js. |
Hy! |
Hy @rooooooooob ! |
I also have this exact problem. Using asm.js is too slow to have it in production, and using wasm (browser), returns the same error: Failed to load module script: The server responded with a non-JavaScript MIME type of "application/wasm". In my case I am trying to use it in an Angular SPA. |
I am using Next.JS 12 I had the same Issue with pure JS-version, then i changed to browser version and the problem was solved. |
Based on this does v10 have no performance improvement for asm? I'm using MeteorJS and at this point they seem to have no interest in supporting wasm. |
The performance has been improved further via #286 which should help the asm.js situation a bit. Any signing done will still be incredibly slow via asm.js though unfortunately but the building of the initial tx should be better. That PR will be included in the release of 10.0.0. edit: I guess this isn't that bad if you're just using it with CIP-30 and the wallet will be doing the signing. |
Hy everyone.
I try to implement the Nami Wallet on one of my website and so I use this library to generate transaction.
I have a performance issue with the function add_change_if_needed(), it took 50sc to be execute on google chrome.
The transaction is very simple :send X ADA to one address.
I'm using the 9.1.0 version full JS.
Here some code:
There is no error and the transaction is send and can be signed.
If someone can help me thanks
The text was updated successfully, but these errors were encountered: