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

[WASM] fast way of converting to BigInt #24

Open
drom opened this issue Oct 3, 2020 · 1 comment
Open

[WASM] fast way of converting to BigInt #24

drom opened this issue Oct 3, 2020 · 1 comment

Comments

@drom
Copy link
Member

drom commented Oct 3, 2020

Find a faster way of transferring bigInt from WASM to JS.

function u8ToBn(u8) {

@esromneb
Copy link
Collaborator

esromneb commented Oct 4, 2020

I'm not sure that there is a faster way. Maybe we could return a function so the user only converts into bigint if they want to. Or maybe we have a mask if the desired bits are less than 32 we just use a normal int?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants