msgpack-javascript
msgpack-javascript copied to clipboard
Works as replacement of serialize-javascript
https://github.com/yahoo/serialize-javascript is used to exchange structured data within workers and processes, which can serialize RegExp, undefined, Map, Set, and so on.
I believe replacement from serialize-javascript to msgpack could boost the performance in parallel tasks.
Lol, yes, I am experimenting with it right now. We are processing tons of data inside webworker and I am testing how msgpack + arraybuffer transfer will work.
But my concert is that we'll produce additional work for GC during msgpack parsing because native object transfer probably allocating objects in way that can be better handled by GC during transfer phase.
lol. 🆒
Have you tested how it works comparing to structured cloning in WebWorkers? @gfx
Not tested yet, because I have no project with web workers.
ok, I am going to test in next week