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 NoblePaul:
http://wiki.apache.org/thrift/New_compact_binary_protocol

------------------------------------------------------------------------------
  === Remove / reduce the size of field prefix tags ===
  || '''Suggestion''' || '''Pros''' || '''Cons''' ||
  ||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|| || ||
+ || 1-byte type-and-modifier, variable length int for field id || || ||
- ||Drop field prefix altogether||saves tons of space|| no versioning is 
possible||
+ || 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 || ||
  
  === Type changes ===

Reply via email to