Skip to content

Commit aa0345c

Browse files
cpovirkrules_java Copybara
authored andcommitted
Instruct java_binary not to compress protobuf.meta.
Compressing the file accounts for a noticeable fraction of runtime. This CL has no effect until after a JavaBuilder that contains unknown commit. PiperOrigin-RevId: 852309989 Change-Id: I255419359afb4f0fee0ffcf7a233f385c8d81b53
1 parent 59e9cb5 commit aa0345c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/common/rules/impl/java_binary_deploy_jar.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def create_deploy_archive(
182182
args.add("--build_target", build_target)
183183
args.add("--normalize")
184184
args.add("--compression")
185+
args.add("--nocompress_suffixes", "protobuf.meta")
185186
if main_class:
186187
args.add("--main_class", main_class)
187188
args.add_all("--deploy_manifest_lines", manifest_lines)

0 commit comments

Comments
 (0)