Comment #11 on issue 460 by [email protected]: Add isDefault() to Java Message interface as a fast means to verify whether it is a default instance
http://code.google.com/p/protobuf/issues/detail?id=460

I agree that an isEmpty() method might be more intuitive than getSerializedSize() == 0, but we just don't change the core API easily unless there is a significant benefit (which should be backed by real data). The request for isEmpty() comes up occasionally not only in Java but also in C++. However, it's never proved to be a significant performance win so we decided to not add it in the core API. As you have noticed, we added the parser API, but that's the result of extensive benchmarking and testing in real production services. Things are much different on the isEmpty() side and there is less hope for isDefault().

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to