|
@@ -200,11 +200,17 @@ public class SceneDownloadHandlerServiceImpl {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ long start = Calendar.getInstance().getTimeInMillis();
|
|
//固定文件写入
|
|
//固定文件写入
|
|
count = this.zipLocalFiles(out, v3localFilePaths, v3localPath, num, count, total);
|
|
count = this.zipLocalFiles(out, v3localFilePaths, v3localPath, num, count, total);
|
|
|
|
+ long end1 = Calendar.getInstance().getTimeInMillis();
|
|
|
|
+ log.info("打包固定文件耗时:{}", end1 - start);
|
|
|
|
|
|
//oss文件写入
|
|
//oss文件写入
|
|
count = this.zipOssFiles(out, ossFilePaths, num, count, total, resolution, imagesVersion, cacheKeys);
|
|
count = this.zipOssFiles(out, ossFilePaths, num, count, total, resolution, imagesVersion, cacheKeys);
|
|
|
|
+ long end2 = Calendar.getInstance().getTimeInMillis();
|
|
|
|
+ log.info("打包oss文件耗时:{}", end2 - end1);
|
|
|
|
+
|
|
|
|
|
|
//写入启动命令
|
|
//写入启动命令
|
|
this.zipBat(out, num);
|
|
this.zipBat(out, num);
|
|
@@ -254,7 +260,9 @@ public class SceneDownloadHandlerServiceImpl {
|
|
}else if((filePath.contains(imageNumPath + "panorama/") && filePath.contains("tiles/" + resolution)) || filePath.contains(imageNumPath + "tiles/" + resolution + "/")) {
|
|
}else if((filePath.contains(imageNumPath + "panorama/") && filePath.contains("tiles/" + resolution)) || filePath.contains(imageNumPath + "tiles/" + resolution + "/")) {
|
|
this.processImage(filePath, out, resolution, imagesVersion, cacheKeys);
|
|
this.processImage(filePath, out, resolution, imagesVersion, cacheKeys);
|
|
}else{
|
|
}else{
|
|
|
|
+ long start = Calendar.getInstance().getTimeInMillis();
|
|
this.ProcessFiles(filePath, out, this.wwwroot, cacheKeys);
|
|
this.ProcessFiles(filePath, out, this.wwwroot, cacheKeys);
|
|
|
|
+ log.info("非切图文件耗时,key:{},time:{}", filePath, Calendar.getInstance().getTimeInMillis() - start);
|
|
}
|
|
}
|
|
|
|
|
|
//更新进度
|
|
//更新进度
|
|
@@ -401,7 +409,9 @@ public class SceneDownloadHandlerServiceImpl {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
imgKeys.add(fky);
|
|
imgKeys.add(fky);
|
|
|
|
+ long start = Calendar.getInstance().getTimeInMillis();
|
|
this.zipBytes(out, wwwroot + fky, FileUtils.getBytesFromUrl(url));
|
|
this.zipBytes(out, wwwroot + fky, FileUtils.getBytesFromUrl(url));
|
|
|
|
+ log.info("切图耗时,url:{},time:{}", url, Calendar.getInstance().getTimeInMillis() - start);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|