Re:In Depth Talk on Performance and Serialization (Protobuf,...
by stock_toaster on Sunday May 13, 2012 @09:52PM
(#3969063)
I think that depends on the library you are using. 3.0 (not truncated to simply 3) is certainly a valid json number. However, point taken that it is a meaningful distinction for javascript.
[ Parent
| on HN ]
Re:In Depth Talk on Performance and Serialization (Protobuf,...
by saurik on Monday May 14, 2012 @02:48AM
(#3969797)
Oh, it is certainly valid; it is just that for purposes of comparing relative space you should be looking at the shortest representation. "3.0000000" is also valid, and is the same 9 bytes as MessagePack, but there is no reason you'd use that to encode this specific number ;P.