aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD
diff options
context:
space:
mode:
authorGravatar tomlu <tomlu@google.com>2018-06-08 10:45:04 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-06-08 10:46:34 -0700
commitad34b9a7f3c1b9332eb93a80b0f4bc4499b1d0fa (patch)
tree2b935e4f69cb11f477271a2f42a920879cb5388e /src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD
parentcd751ca2bb3677a15e0187f764415a6659417624 (diff)
Use unsafe String operations when writing parameter files.
When a LATIN-1 parameter file is requested, we can take advantage of the fact that JDK9 strings are (usually) stored as LATIN-1. For UTF-8, we can still optimize for the common case where a LATIN-1 string contains only ASCII characters, as these are bit-identical between UTF-8 and LATIN-1. This would still be expected to be the vast majority of parameter file contents. RELNOTES: None PiperOrigin-RevId: 199816430
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD b/src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD
index 93412b31be..96f9a87cd8 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD
@@ -17,7 +17,8 @@ java_library(
deps = [
"//src/main/java/com/google/devtools/build/lib:crash-utils",
"//src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec:registered-singleton",
- "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec:unsafe-provider",
+ "//src/main/java/com/google/devtools/build/lib/unsafe:string",
+ "//src/main/java/com/google/devtools/build/lib/unsafe:unsafe-provider",
"//third_party:guava",
"//third_party:jsr305",
"//third_party/protobuf:protobuf_java",