Unverified 提交 a084ae8d authored 作者: Andrei Tokar's avatar Andrei Tokar 提交者: GitHub

Merge pull request #1614 from igor-suhorukov/master

Use bulk .addAll() operation
......@@ -476,9 +476,7 @@ public class ArchiveTool {
if (last == null) {
last = c;
} else if (last.compareTo(c) == 0) {
for (long x : c.idList) {
last.idList.add(x);
}
last.idList.addAll(c.idList);
} else {
outPos += last.write(tempOut2, true);
last = c;
......@@ -520,9 +518,7 @@ public class ArchiveTool {
if (last == null) {
last = c;
} else if (last.compareTo(c) == 0) {
for (long x : c.idList) {
last.idList.add(x);
}
last.idList.addAll(c.idList);
} else {
last.write(dataOut, false);
last = c;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论