7 ms·
I'd love to see this expanded into protocol buffers and custom serialization methods. There's a whole chapter in "High Performance Javascript" that goes over t
by zdw 15y ago
I'd love to see this expanded into protocol buffers and custom serialization methods.
There's a whole chapter in "High Performance Javascript" that goes over the different encoding methods, which finds that a purpose built encoding/delimiting scheme was often faster than either JSON or XML.
On-the-wire formats have different goals than on-disk formats. If you want to future proof the readability of your data, keeping it in a structured method (like a database, or XML with well defined schemas) is probably of greater importance than "it decodes fast".