Skip to content

Commit da5d974

Browse files
committed
proto: supporting zstd dictionary
DO NOT MERGE. This is mainly served as a conversation starter for future dictionary compression features.
1 parent ecc4729 commit da5d974

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

proto/remote_execution.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,9 @@ message Compressor {
20002000

20012001
// Brotli compression.
20022002
BROTLI = 3;
2003+
2004+
// Zstandard compression with external dictionary support.
2005+
ZSTD_DICT = 4;
20032006
}
20042007
}
20052008

@@ -2036,6 +2039,18 @@ message CacheCapabilities {
20362039
// [BatchUpdateBlobs][build.bazel.remote.execution.v2.ContentAddressableStorage.BatchUpdateBlobs]
20372040
// requests.
20382041
repeated Compressor.Value supported_batch_update_compressors = 7;
2042+
2043+
// A map of Compressor.Value to corresponding tree digest.
2044+
//
2045+
// The tree digest is expected to be shallow and contain only the dictionaries
2046+
// that may be used by the client to decompress the blobs received from the server.
2047+
//
2048+
// Dictionary files should have name corresponding to the dictionary's ID that is included
2049+
// in the header of each compressed blob.
2050+
//
2051+
// There SHOULD be a dictionary named "default" in the tree. It is to be used for compression
2052+
// when client uploads new blobs to the server.
2053+
map<string, Digest> compression_dictionary_trees = 8;
20392054
}
20402055

20412056
// Capabilities of the remote execution system.

0 commit comments

Comments
 (0)