提交 0c90e9d4 authored 作者: Noel Grandin's avatar Noel Grandin

address review comments

上级 f91fa5c2
...@@ -37,8 +37,8 @@ public class Plan { ...@@ -37,8 +37,8 @@ public class Plan {
public Plan(TableFilter[] filters, int count, Expression condition) { public Plan(TableFilter[] filters, int count, Expression condition) {
this.filters = new TableFilter[count]; this.filters = new TableFilter[count];
System.arraycopy(filters, 0, this.filters, 0, count); System.arraycopy(filters, 0, this.filters, 0, count);
final ArrayList<Expression> allCond = new ArrayList<>(count/2); final ArrayList<Expression> allCond = new ArrayList<>();
final ArrayList<TableFilter> all = new ArrayList<>(count); final ArrayList<TableFilter> all = new ArrayList<>();
if (condition != null) { if (condition != null) {
allCond.add(condition); allCond.add(condition);
} }
......
...@@ -86,7 +86,7 @@ public class TestMVStoreBenchmark extends TestBase { ...@@ -86,7 +86,7 @@ public class TestMVStoreBenchmark extends TestBase {
hash = getMemory() - mem; hash = getMemory() - mem;
mapList.size(); mapList.size();
mapList = new ArrayList<>(count); mapList.clear();
mem = getMemory(); mem = getMemory();
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
mapList.add(new TreeMap<Integer, String>()); mapList.add(new TreeMap<Integer, String>());
...@@ -95,7 +95,7 @@ public class TestMVStoreBenchmark extends TestBase { ...@@ -95,7 +95,7 @@ public class TestMVStoreBenchmark extends TestBase {
tree = getMemory() - mem; tree = getMemory() - mem;
mapList.size(); mapList.size();
mapList = new ArrayList<>(count); mapList.clear();
mem = getMemory(); mem = getMemory();
MVStore store = MVStore.open(null); MVStore store = MVStore.open(null);
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论