--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
Java doesn't have such a thing. Is this by design? If yes, would love to understand the rationale of why clearing-everything-and-reinserting-(N-1)-values is so much better than:(a) providing an API to do so, and
(b) providing a more optimized implementation that is not O(n) on a delete.
On Wed, Jun 23, 2010 at 3:01 PM, Dheeraj Pandey <dhe...@alumni.utexas.net> wrote:Java doesn't have such a thing. Is this by design? If yes, would love to understand the rationale of why clearing-everything-and-reinserting-(N-1)-values is so much better than:(a) providing an API to do so, andThere is actually a pending change to provide a much nicer API for this sort of modification. It will probably be in the next release, so if you can be patient things should improve soon!
(b) providing a more optimized implementation that is not O(n) on a delete.