[quote]If you had an object graph with a string somewhere in the middle that changed length, only the changed data would be sent (with a tiny bit of overhead for the copy/append command bytes).
[/quote]
Cool, it’s much smarter than I thought it was.
I tried the DeltaCompressor on the world state sent from the server to the clients. It went from around 750 to between 50 and 150 bytes Although it seems to be a bit buggy. I keep getting the following exception:
Caused by: com.esotericsoftware.kryo.SerializationException: Invalid delta command: -105
at com.esotericsoftware.kryo.compress.Delta.decompress(Delta.java:256)
at com.esotericsoftware.kryo.compress.DeltaCompressor.decompress(DeltaCompressor.java:82)
at com.esotericsoftware.kryo.Compressor.readObjectData(Compressor.java:101)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:566)
Maybe I’m doing something wrong.