Class TFacebookCompactProtocol

java.lang.Object
io.airlift.drift.protocol.TFacebookCompactProtocol
All Implemented Interfaces:
TProtocol, TProtocolReader, TProtocolWriter

public class TFacebookCompactProtocol extends Object implements TProtocol
TCompactProtocol2 is the Java implementation of the compact protocol specified in THRIFT-110. The fundamental approach to reducing the overhead of structures is a) use variable-length integers all over the place and b) make use of unused bits wherever possible. Your savings will obviously vary based on the specific makeup of your structs, but in general, the more fields, nested structures, short strings and collections, and low-value i32 and i64 fields you have, the more benefit you'll see.