zkBob / libzkbob-rs

Apache License 2.0
1 stars 3 forks source link

Parallel state update #16

Closed AllFi closed 2 years ago

AllFi commented 2 years ago

Hello! I have implemented parallel state update. It works roughly 4-5 times faster than single-threaded version on my laptop (Intel(R) Core(TM) i7-10750H). But I have some concerns. We need to call wasm function from web worker to use multiple threads in wasm. But it seems that there is no simple way to send user account from main thread to web worker (https://stackoverflow.com/questions/7704323/passing-objects-to-a-web-worker). That's why parse_txs method uses sk directly now but I am not sure that it is ok. What do you think?