Improve performance of parsing unknown fields in Java#9371
Improve performance of parsing unknown fields in Java#9371acozzette merged 1 commit intoprotocolbuffers:masterfrom
Conversation
elharo
left a comment
There was a problem hiding this comment.
Not sure why the tests are failing. Has CI gone flaky again?
| @@ -0,0 +1,78 @@ | |||
| // Protocol Buffers - Google's data interchange format | |||
| // Copyright 2008 Google Inc. All rights reserved. | |||
There was a problem hiding this comment.
2021 and otherwise update to current guidelines for copyright statements
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.
elharo
left a comment
There was a problem hiding this comment.
Test failures look related:
++ '[' '!' -z 'java/core/src/test/java/com/google/protobuf/UnknownFieldSetPerformanceTest.java ' ']'
++ echo 'Missing files in EXTRA_DIST: java/core/src/test/java/com/google/protobuf/UnknownFieldSetPerformanceTest.java '
Missing files in EXTRA_DIST: java/core/src/test/java/com/google/protobuf/UnknownFieldSetPerformanceTest.java
++ exit 1
624452b to
5ea2bdf
Compare
|
#9372 should fix the Ruby build failure if I understand the problem right. |
| @@ -232,6 +232,7 @@ | |||
| <exclude>TypeRegistryTest.java</exclude> | |||
| <exclude>UnknownEnumValueTest.java</exclude> | |||
| <exclude>UnknownFieldSetLiteTest.java</exclude> | |||
There was a problem hiding this comment.
not new, but why are we excluding the lite test here? Worth a look.
There was a problem hiding this comment.
Hmm, good question. I'm not sure why.
…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.
…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.
…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.
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.
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.
…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.
…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.
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.
|
Is this fix going to be applied on 3.17.x branch ? |
|
No, we're no longer maintaining the 3.17.x branch, so to get this fix you will have to upgrade to at least 3.18.2. |
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.