mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
72980ee410
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> |
||
---|---|---|
.. | ||
testprotos | ||
registry_test.go | ||
registry.go |