protobuf-go/internal/testprotos
Damien Neil a9940822d4 all: remove protoreflect.Message.Len
Len looks like it should be O(1), but the need to check for
non-zero-length repeated fields makes it at minimum O(n) where n is
the number of repeated fields. In practice, it's O(n) where n is the
number of fields altogether.

The Len function is not especially useful, easily duplicated with Range
and a counter, and can be surprisingly inefficient. Drop it.

Change-Id: I24b27433217e131e842bd18dd58475bcdf62ef97
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/183678
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-06-25 21:59:46 +00:00
..
benchmarks proto: add benchmark using protobuf repo test data 2019-06-20 20:38:50 +00:00
conformance cmd/protoc-gen-go: un-deprecate enum maps 2019-06-20 19:36:37 +00:00
irregular all: remove protoreflect.Message.Len 2019-06-25 21:59:46 +00:00
legacy internal/filedesc, internal/filetype: initial commit 2019-06-20 02:06:11 +00:00
test internal/impl: add fast-path for IsInitialized 2019-06-24 17:42:23 +00:00
test3 cmd/protoc-gen-go: un-deprecate enum maps 2019-06-20 19:36:37 +00:00