提交 96fa1399 authored 作者: igor-suhorukov's avatar igor-suhorukov

Use bulk .addAll() operation

上级 c6933120
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论