You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The demo provided is already multithreaded, but is achieved with web-workers as opposed to inside the wasm with rayon.
I considered using rayon but opted for multi-threading via web-workers instead in order to keep the wasm simple and to have wider compatbililty.
Rayon would definitely simplify usage of notemine, but it also could have some accessibility gotchyas with browser support (here and here). When compared with the accessibility of web workers, it's clear that notemine has notably wider coverage for multithreaded mining by implementing web-workers.
Additionally, based on the demo you sent, I'm not seeing much of a performance benefit over the web-worker implementation, both have a simliar end result (singleThreadPerf*totalThreads)
That said, I'm definitely not opposed to having another build with rayon implemented!
# This is the 1st commit message:
monorepo
# The commit message #2 will be skipped:
# rearrange and break everything
# The commit message #3 will be skipped:
# stuff
# The commit message #4 will be skipped:
# add svelte package/demo
# The commit message #5 will be skipped:
# add svelte package/demo
# The commit message #6 will be skipped:
# remove yarn lock
# The commit message #7 will be skipped:
# update README add reactjs package
# The commit message #8 will be skipped:
# update wrapper
# The commit message #9 will be skipped:
# update svelte demo
# The commit message #10 will be skipped:
# remove accidental node_modules and add build scripts
# The commit message #11 will be skipped:
# move core to rust and update scripts so whenever rust is built is copies to packages/core
# The commit message #12 will be skipped:
# remove demo from @notemine/wrapper
If it is possible to parallelize functions in wasm libraries with something like https://github.com/RReverser/wasm-bindgen-rayon it would probably provide a great speed improvement to the note hashing.
Demo: https://rreverser.com/wasm-bindgen-rayon-demo/
The text was updated successfully, but these errors were encountered: