module

AtomSpace::NetworkCompression

Network compression for distributed operations - reduces bandwidth by 40-60%

Class methods

compress(data : String) : Bytes

Compress data for network transmission

decompress(compressed : Bytes) : String

Decompress data received from network

should_compress?(data : String, threshold : Int32 = 512) : Bool

Check if compression is beneficial (data larger than threshold)