Skip to content

Commit

Permalink
Use actual configuration for cache compression level
Browse files Browse the repository at this point in the history
  • Loading branch information
mrowqa committed Jul 31, 2019
1 parent cc57408 commit b04021a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wasmtime-environ/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ impl ModuleCacheEntry {
pub fn update_data(&self, data: &ModuleCacheData) {
if let Some(p) = &self.mod_cache_path {
let cache_buf = match bincode::serialize(&data) {
// todo ask config for the compression level
Ok(data) => match zstd::encode_all(&data[..], 10) {
Ok(data) => match zstd::encode_all(&data[..], conf::compression_level()) {
Ok(data) => data,
Err(err) => {
warn!("Failed to compress cached code: {}", err);
Expand Down

0 comments on commit b04021a

Please sign in to comment.