Skip to content

Instantly share code, notes, and snippets.

@selenamarie
Created January 28, 2010 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selenamarie/289085 to your computer and use it in GitHub Desktop.
Save selenamarie/289085 to your computer and use it in GitHub Desktop.
thinking about using these as a replication stream:
* standard types: bool, int32, float, double, and string
* don't use 'required' when defining fields
* Each field has a unique tag, 1-15 requiring one less bit than higher nums
** suggested that repeated values are particularly good candidates for this optimization
* C++ generated code reference: http://code.google.com/apis/protocolbuffers/docs/reference/cpp-generated.html
* Add GOOGLE_PROTOBUF_VERIFY_VERSION macro as best practice in main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment