4 ms·
That's cool, but not nuts about JSON. They should include at least one space-efficient format, like messagepack (which is 100% compatible with JSON after encod
by andrewvc 15y ago
That's cool, but not nuts about JSON. They should include at least one space-efficient format, like messagepack (which is 100% compatible with JSON after encoding / decoding). Of course, this opens the floodgates...
Also, is zlib available?
- justincormack 15y agoZlib is not shipped with Lua. I am sure more stuff will get added though as time goes on.
- kainosnoema 15y agoIn recent benchmarks, Node's JSON implementation is almost twice as fast as messagepack. I think I'd rather have the more universally used format anyway.
- andrewvc 15y agoIt's not about speed, but space efficiency, msgpack is significantly smaller. That's useful for a mostly in memory database. As far as speed that's negligible.
- antirez 15y agoHello, if you care about size, the best way is to just use Redis Hashes, that internally store fields and values into a binary very compact representation.