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

Consider transferring binary messages #41

Open
gmarty opened this issue Jun 9, 2015 · 0 comments
Open

Consider transferring binary messages #41

gmarty opened this issue Jun 9, 2015 · 0 comments

Comments

@gmarty
Copy link
Contributor

gmarty commented Jun 9, 2015

According to benchmarks, transferring binary data is way faster than JavaScript objects.

Maybe we can use a mechanism like protocol buffer to serialise the data to binary, transmit them to another thread and then deserialise them to objects.

There is an unofficial JavaScript port of protocol buffer: https://github.com/dcodeIO/ProtoBuf.js/

It may be overkilling for short messages, but if messages are ususally big, then it can make a change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant