Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works as replacement of serialize-javascript #58

Open
gfx opened this issue Jun 4, 2019 · 6 comments
Open

Works as replacement of serialize-javascript #58

gfx opened this issue Jun 4, 2019 · 6 comments
Labels

Comments

@gfx
Copy link
Member

gfx commented Jun 4, 2019

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.

@sergeyzenchenko
Copy link
Collaborator

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.

@sergeyzenchenko
Copy link
Collaborator

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.

@gfx
Copy link
Member Author

gfx commented Jun 4, 2019

lol. 🆒

@sergeyzenchenko
Copy link
Collaborator

Have you tested how it works comparing to structured cloning in WebWorkers? @gfx

@gfx
Copy link
Member Author

gfx commented Aug 8, 2019

Not tested yet, because I have no project with web workers.

@sergeyzenchenko
Copy link
Collaborator

ok, I am going to test in next week

@gfx gfx added the Feature label Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants