message: Disable cache for files < 4KB
diff: @@ -80,8 +80,12 @@ impl Run {
  let store = Store::new(&engine);
  let contents = std::fs::read(self.path.clone())?;
  - // We try to get it from cache, in case is enabled
  - let mut module = if cfg!(feature = "cache") && !self.disable_cache {
  + // We try to get it from cache, in case caching is enabled
  + // and the file length is greater than 4KB.
  + // For files smaller than 4KB caching is not worth,
  + // as it takes space and the speedup is minimal.
  + let mut module =
  + if cfg!(feature = "cache") && !self.disable_cache && contents.len() > 0x1000 {
  let mut cache = self.get_cache(compiler_name)?;
  // Try to get the hash from the provided `--cache-key`, otherwise
  // generate one from the provided file `.wasm` contents.
  