On Jul 15, 2010, at 16:40 , mark.t.macdon...@googlemail.com wrote:
cout<<Message1.name(); cout<<Message1.GetReflection()->GetString( ref, stabiliser.GetDescriptor()->FindFieldByName("name"));
The differences between these two are HUGE. The first one is a compiled local variable reference (effectively). The second has to do some sort of table lookup. You want to use the first form if you care about performance.
Evan -- Evan Jones http://evanjones.ca/ -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.