Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/214.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在java/android zip4j中解压缩速度太慢_Android_Zip4j - Fatal编程技术网

在java/android zip4j中解压缩速度太慢

在java/android zip4j中解压缩速度太慢,android,zip4j,Android,Zip4j,我正在使用android中的库。我正在用密码解压一个文件,速度很慢 我是这样做的: public boolean unzipFile(){ String path= FileController.getInstance().getAbsolutePath(); String source = path+"/program.zip"; String destination = path+"/cache_content/"; String password = "123456789

我正在使用android中的库。我正在用密码解压一个文件,速度很慢

我是这样做的:

public boolean unzipFile(){
  String path= FileController.getInstance().getAbsolutePath();

  String source = path+"/program.zip";
  String destination = path+"/cache_content/";
  String password = "123456789";

  long millis=Calendar.getInstance().getTimeInMillis();

  try {
    ZipFile zipFile = new ZipFile(source);
    if (zipFile.isEncrypted()) {
       zipFile.setPassword(password);
    }

    zipFile.extractAll(destination);
    Log.i("time_zipper",(Calendar.getInstance().getTimeInMillis()-millis)/1000+"");
    return true;
  } catch (ZipException e) {
    e.printStackTrace();
    return false;
  }
}

它在88秒内解压8Mb的文件,我想提高解压速度。

我已经禁用了密码,它在3秒内工作