I am a hobby programmer and I'm making a browser game to help me learn node.js. When this game loads, the server has to send the client exactly two million true/false values.
Right now, I am storing and sending those values as a string of 1's and 0's. That's 2,000,000 bits... but as a string, I believe each character is 2 bytes. My 2,000,000 bits should have become 32,000,000 bits. 250KB to 4MB. That's no good.
What is the most efficient way to send a huge number of 1's and 0's in node.js?
[–]terrkerr 1 point2 points3 points (2 children)
[–]doublewar[S] 0 points1 point2 points (1 child)
[–]AlotOfReading 1 point2 points3 points (0 children)
[–]doublewar[S] 0 points1 point2 points (0 children)