guildxyz / guild-zk

8 stars 0 forks source link

I23 rayon #36

Closed PopcornPaws closed 2 years ago

PopcornPaws commented 2 years ago

Description

Parallelizing proof generation and verification reduced both proving and verification times to under a second. However, this is only for pure Rust, using Rayon. Unfortunately, wasm workers (based on the raytracing example) get extremely slow when delegating parallel tasks to them. They slow down to the point that a single thread gets the job done faster.

Therefore, this PR will be left as a draft placeholder so when multithreading in wasm works as intended, it can be merged. But until then it's just a proof of concept.

PopcornPaws commented 2 years ago

Closing this in favor of #52