Dear Wiki user, You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change notification.
The following page has been changed by BryanDuxbury: http://wiki.apache.org/thrift/New_compact_binary_protocol ------------------------------------------------------------------------------ ||Reduce from 3 bytes per field to 1 byte, see [http://publists.facebook.com/pipermail/thrift/2008-January/000275.html mail] || Retains versioning support || Only good for dense structs[[BR]]Breaks down if type modifiers/hints need to go into type field || || 1-byte type-and-modifier, variable length int for field id || || || || Drop field prefix altogether|| saves tons of space || no versioning is possible || - ||Use a per-struct variable length bitset to specify which all fields present . Preserve type info||Saves 1 bit/field and adds 1 byte/ 7 fields || || + ||Use a per-struct variable length bitset to specify which all fields present . Preserve type info||Saves 1 bit/field and adds 1 byte/ 7 fields ||Bad for sparse objects[[BR]Implies fields must be ordered by id in encoding|| === Type changes === ||'''Suggestion''' || '''Pros''' || '''Cons'''||
