提交 905409b2 authored 作者: Thomas Mueller's avatar Thomas Mueller

ArchiveTool: use larger chunk size

上级 c20e1790
......@@ -392,7 +392,7 @@ public class ArchiveTool {
private static void sort(InputStream in, OutputStream out,
String tempFileName, long size) throws IOException {
long lastTime = System.currentTimeMillis();
int bufferSize = 16 * 1024 * 1024;
int bufferSize = 32 * 1024 * 1024;
DataOutputStream tempOut = new DataOutputStream(new BufferedOutputStream(
new FileOutputStream(tempFileName), 1024 * 1024));
byte[] bytes = new byte[bufferSize];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论