commit | 72980ee410c27bc6dbeaca304012172e75a7bd47 | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Thu Sep 05 10:19:36 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Thu Sep 05 18:06:52 2019 +0000 |
tree | afe3ca0d971581963f95c86057428604447c0d08 | |
parent | ea5ada15be265facf9bb1dfc7f729feff2722de0 [diff] |
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>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.