提交 bfd46151 编写于 作者: Z zhangwei 提交者: wu-sheng

Replace add with addAll, reduce the invoke time a little. (#2766)

上级 83ce7cc4
......@@ -90,9 +90,7 @@ public class ConsumerThread<T> extends Thread {
if (data.size() == 0) {
continue;
}
for (T element : data) {
consumeList.add(element);
}
consumeList.addAll(data);
hasData = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册