Project

General

Profile

« Previous | Next » 

Revision 91e49fc3

Added by skyjake almost 13 years ago

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.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences