Skip to content

Commit f554cca

Browse files
committed
Improve performance of parsing unknown fields in Java (#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.
1 parent 2dc747c commit f554cca

File tree

5 files changed

+312
-213
lines changed

5 files changed

+312
-213
lines changed

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ java_EXTRA_DIST=
490490
java/core/src/test/java/com/google/protobuf/TypeRegistryTest.java \
491491
java/core/src/test/java/com/google/protobuf/UnknownEnumValueTest.java \
492492
java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java \
493+
java/core/src/test/java/com/google/protobuf/UnknownFieldSetPerformanceTest.java \
493494
java/core/src/test/java/com/google/protobuf/UnmodifiableLazyStringListTest.java \
494495
java/core/src/test/java/com/google/protobuf/Utf8Test.java \
495496
java/core/src/test/java/com/google/protobuf/Utf8Utils.java \

0 commit comments

Comments
 (0)