On Aug 3, 2010, at 12:46 , Jon Schewe wrote:
I know that I could create a new coded input stream for each message,
but this seems rather wasteful and slow compared with just resetting a
counter.

I complained about the same thing a little while ago:

http://groups.google.com/group/protobuf/browse_thread/thread/a4bc2a3788d356f6


Read that thread for details, but the summary is: patches welcomed. CodedInputStream is pretty lightweight though, so creating and destroying one per message should be pretty efficient.

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.

Reply via email to