Skip to content

Commit

Permalink
switch to snappy compression
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Sep 1, 2024
1 parent c6e7852 commit 885866a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ superchain = "0.3.1"
superchain-primitives = { version = "0.3.1", default-features = false }

# K/V database
rocksdb = { version = "0.22", default-features = false, features = ["zstd"] }
rocksdb = { version = "0.22", default-features = false, features = ["snappy"] }

# Alloy
alloy-rlp = { version = "0.3.5", default-features = false }
Expand Down
Binary file modified bin/client/testdata/granite-op-sepolia-16491249-witness.tar.zst
Binary file not shown.
2 changes: 1 addition & 1 deletion bin/host/src/kv/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl DiskKeyValueStore {
/// Gets the [Options] for the underlying RocksDB instance.
fn get_db_options() -> Options {
let mut options = Options::default();
options.set_compression_type(rocksdb::DBCompressionType::Zstd);
options.set_compression_type(rocksdb::DBCompressionType::Snappy);
options.create_if_missing(true);
options
}
Expand Down

0 comments on commit 885866a

Please sign in to comment.