提交 ca8fbfc8 authored 作者: Thomas Mueller's avatar Thomas Mueller

Performance has been improved a bit.

上级 d6f8e0e6
......@@ -18,20 +18,17 @@ public class Row implements SearchRow {
public static final int MEMORY_CALCULATE = -1;
public static final Row[] EMPTY_ARRAY = {};
private long key;
private final Value[] data;
private final int memory;
private int memory;
private int version;
private boolean deleted;
private int sessionId;
public Row(Value[] data, int memory) {
this.data = data;
if (memory != MEMORY_CALCULATE) {
this.memory = memory;
} else {
this.memory = MEMORY_CALCULATE;
}
this.memory = memory;
}
public void setKeyAndVersion(SearchRow row) {
......@@ -100,6 +97,7 @@ public class Row implements SearchRow {
}
}
}
this.memory = m;
return m;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论