vcd icon indicating copy to clipboard operation
vcd copied to clipboard

[WASM] fast way of converting to BigInt

Open drom opened this issue 5 years ago • 1 comments

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

https://github.com/wavedrom/vcd/blob/6ae6413d0fd2ed066a6fc4a5bb9385fcea8eaa65/lib/wrapper.js#L13

drom avatar Oct 03 '20 04:10 drom

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?

esromneb avatar Oct 04 '20 00:10 esromneb