Use deflate for network messages, removed Huffman encoding
The Huffman encoding implementation that was used for compressing all data sent over the network was rather inadequate: poor compression level (Huffman frequencies calculated years ago for jHexen); not thread-safe (static decode buffer).
Now network messages are compressed using zlib's deflate algorithm. Very small messages are not compressed at all, while very large (> 4KB) messages are compressed using the best/slowest level.
Use deflate for network messages, removed Huffman encoding
The Huffman encoding implementation that was used for compressing
all data sent over the network was rather inadequate: poor compression
level (Huffman frequencies calculated years ago for jHexen); not
thread-safe (static decode buffer).
Now network messages are compressed using zlib's deflate algorithm.
Very small messages are not compressed at all, while very large
(> 4KB) messages are compressed using the best/slowest level.
The entire Huffman implementation was removed.