On Mon, Jun 8, 2009 at 2:03 PM, <wayne.mene...@gmail.com> wrote:
> Hi,
> Can anyone tell me what are the caveats of using the option
> optimize_for = SPEED; during code generation?
> The documentation says it can improve parsing and serialization. But
> what are the cons of using this?

Mostly it generates more code which will increase your binary size. So
if your code runs in limited memory conditions or have very many
protocol buffers linked into your binary, the optimize_for=SPEED could
be problematic. If you don't run into such limitations, then go for
the SPEED ;)


You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to