3 ms·
Why would you use JSON in a high performance context anyway?
by the_duke 10y ago
Why would you use JSON in a high performance context anyway?
- skybrian 10y agoBecause 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?
- artursapek 10y agoThis library is very good at serializing and deserializing binary proto3 messages in the browser. https://github.com/dcodeIO/ProtoBuf.js/ https://github.com/dcodeIO/ProtoBuf.js/