Re: [protobuf] getAllFields performance?

2015-05-21 Thread 'Feng Xiao' via Protocol Buffers
On Tue, May 19, 2015 at 9:13 PM, Tak Wong wrote: > We are using protobuf as our messaging, and each message, we loop thru the > set fields, and do something with it. > > We loop it using > > for ( final Map.Entry entry : > msg.getAllFields().entrySet()) { > FieldDescriptor field

[protobuf] getAllFields performance?

2015-05-21 Thread Tak Wong
We are using protobuf as our messaging, and each message, we loop thru the set fields, and do something with it. We loop it using for ( final Map.Entry entry : msg.getAllFields().entrySet()) { FieldDescriptor field = entry.getKey(); Object value = entry.getValue();