Skip to content

endj/JavaScript-Cross-Worker-Data-Sharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Testing Strategies For JavaScript Cross Worker Data Sharing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published