在java/android zip4j中解压缩速度太慢
我正在使用android中的库。我正在用密码解压一个文件,速度很慢 我是这样做的:在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
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秒内工作