Page 1 of 1

About compressing sparse arrays

Posted: 2007-07-10, 23:05
by Carsten
Here are a few methods for compressing sparse byte arrays: The problem of compressing sparse arrays is encountered when entity state is to be sent over the network. The entity state is normally stored in a bit-field (array of bits, a "BitMessage"), but instead of sending this bit-field directly, the server first builds the delta to the previous state using a simple XOR combine, which yields a (very) sparse array. Only the compressed contents of this sparse array is then sent over the network.
:roll: :love:

... Should collect real test data of a real Ca3DE session, then excercise the test data through all compression methods and all their reasonable combinations; creating stats will reveal the "best" method for our purposes...