shiyilei / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Don't include names to save space [patch] #83

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm evaluating the use of protobuf-c for an embedded system.
Since reducing code size is important, I thought about leaving out the name 
fields from the message, field and enum structs.
The compiler would have to be modified as well in order not to output the 
respective fields.

I also left out some "reserved" fields, wondering what their purpose was?

Also, the field max_alloca in ProtobufCAllocator is not used, so I removed that 
as well.

Please feel free to use the attached patch. Note that this change has not been 
tested extensively.

Original issue reported on code.google.com by stephan....@gmail.com on 11 May 2012 at 11:00

Attachments: