Compression algorithm for JSON encoded packets?
问题 What would be the best compression algorithm to use to compress packets before sending them over the wire? The packets are encoded using JSON. Would LZW be a good one for this or is there something better? 回答1: I think two questions will affect your answer: 1) How well can you predict the composition of the data without knowing what will happen on any particular run of the program? For instance, if your packets look like this: { "vector": { "latitude": 16, "longitude": 18, "altitude": 20 },