mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-22 12:39:52 +00:00
The Num methods provide an O(1) lookup for the number of entries that Range would return. This is needed to implement efficient cache invalidation logic for caches that wrap the global registry. Change-Id: I7c4ff97f674c4e9e4caae291f017cfad7294856c Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/193599 Reviewed-by: Damien Neil <dneil@google.com>