protobuf-go/reflect/protoregistry
Joe Tsai 72980ee410 reflect/protoregistry: add Num methods for every Range method
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>
2019-09-05 18:06:52 +00:00
..
testprotos all: unify protoV1.ExtensionDesc and proto.ExtensionType 2019-08-20 21:32:57 +00:00
registry_test.go reflect/protoregistry: add Num methods for every Range method 2019-09-05 18:06:52 +00:00
registry.go reflect/protoregistry: add Num methods for every Range method 2019-09-05 18:06:52 +00:00