-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use binary data instead of string/object data #5
Comments
how would you implement that? could you point us to one example? |
A starting point https://github.com/binaryjs/binaryjs |
honestly, I have no idea how to do it. haha. that's why I put it here but not assigned to myself yet. |
Socket.io in current version can send binary data just like json http://socket.io/blog/introducing-socket-io-1-0/#binary-support |
great!!!! 👍 |
There is a feedback on HackerNews, he compared the amount of data transfer by the original AgarIO game and our clone. Here is the details: Original Agar:
Our clone:
There is a very long way ahead to optimize the server. First is the binary data, then, may be we will find a way to reduce packets size (only send changed values, etc) |
Perhaps we could have the user compress to a BLOB format and then once it is in a BLOB the server could handle it as BLOB will move easier |
If the user does the BLOB then we are utilizing some of the user resources not taxing the program |
Super interesting !!! thank you |
Found an interested article about Binary in JS |
Somebody has done a serious research on Agar.io data structure |
@huytd That Protocol.md is pretty interesting! |
To speed up the connection. Send/receive data in binary format is a better idea than string/object.
The text was updated successfully, but these errors were encountered: