NotionCommotion Posted September 12, 2017 Share Posted September 12, 2017 bson seems to be a non-option, right? http://php.net/manual/en/function.bson-encode.php Why would one chose gzip over zlib, or zlib over gzip? If it makes a different, it will be between client/server using JSON-RPC. Thanks Quote Link to comment Share on other sites More sharing options...
requinix Posted September 12, 2017 Share Posted September 12, 2017 I'd say not to fuss over which one produces fewer bytes - they'll all be about the same - and go with the easiest option: deflate/inflate, compress/decompress, or encode/decode. Two of those are supported by browsers (I forget which) so I'd pick one of them. Haven't we talked about this before? Quote Link to comment Share on other sites More sharing options...
NotionCommotion Posted September 12, 2017 Author Share Posted September 12, 2017 I'd say not to fuss over which one produces fewer bytes - they'll all be about the same - and go with the easiest option: deflate/inflate, compress/decompress, or encode/decode. Two of those are supported by browsers (I forget which) so I'd pick one of them. Haven't we talked about this before? Kind of. I was thinking of using CBOR or MessagePack, and you recommended gzib or zlib, but not which one. Quote Link to comment Share on other sites More sharing options...
requinix Posted September 12, 2017 Share Posted September 12, 2017 and you recommended gzib or zlib, but not which one.It doesn't matter. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.