is there anyway to exclude code generation for few of the messages present in .proto file without modifying .proto file
reason i am looking for this is because i need to use only one message from master proto file which has many messages for different functionality. I do not wanted to modify proto file because sync with master file will be easier. when i generate code for the master proto file i see all messages are part of generated code (which is expected) i was expecting compiler/linker(gcc with flag -O3) would optimize and remove unused messages i was wrong in that. are there any way we can exclude these messages from linking with executable which will save lot of code and execution memory. when i did little more deep on map file static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fxxxx_2eproto_ is the global structure instance which allocates memory for "default_instance_" are the source because of which all the messages are linked with exe. Giri -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
