Skip to content

Commit

Permalink
Improve performance of parsing unknown fields in Java (protocolbuffer…
Browse files Browse the repository at this point in the history
…s#9371)

Credit should go to @elharo for most of these Java changes--I am just
cherry-picking them from our internal codebase. The one thing I did
change was to give the UTF-8 validation tests their own Bazel test
target. This makes it possible to give the other tests a shorter
timeout, which is important for UnknownFieldSetPerformanceTest in
particular.
  • Loading branch information
acozzette committed Jan 5, 2022
1 parent 2dc747c commit 8d1a55b
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 213 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -490,6 +490,7 @@ java_EXTRA_DIST=
java/core/src/test/java/com/google/protobuf/TypeRegistryTest.java \
java/core/src/test/java/com/google/protobuf/UnknownEnumValueTest.java \
java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java \
java/core/src/test/java/com/google/protobuf/UnknownFieldSetPerformanceTest.java \
java/core/src/test/java/com/google/protobuf/UnmodifiableLazyStringListTest.java \
java/core/src/test/java/com/google/protobuf/Utf8Test.java \
java/core/src/test/java/com/google/protobuf/Utf8Utils.java \
Expand Down

0 comments on commit 8d1a55b

Please sign in to comment.