Hacker News new | ask | show | jobs
by the_duke 3612 days ago
Why would you use JSON in a high performance context anyway?
1 comments

Because the code is running in a browser.

Browsers do support binary data using typed arrays but for some reason this isn't commonly used yet. Compatibility, maybe?

This library is very good at serializing and deserializing binary proto3 messages in the browser.

https://github.com/dcodeIO/ProtoBuf.js/