Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 702 Bytes

File metadata and controls

24 lines (13 loc) · 702 Bytes

Javascript Cross Thread Data Sharing

Testing several strategies for sharing objects and arrays between workers.

Hosted @

https://endj.github.io/JavaScript-Cross-Worker-Data-Sharing/

Arrays

Avoiding copying of data through move semantics seems to work well. Possible to split up data and distribute it across several workers for larger improvement if the algorithm allows it.

Objects

Structured cloning turned out to be unsurprisingly the fastest.

Did not test

SharedArrayBuffer