提交 4b0e8bc5 authored 作者: Thomas Mueller's avatar Thomas Mueller

The cache memory usage calculation is more conservative.

上级 769849db
...@@ -76,7 +76,7 @@ public class Row extends Record implements SearchRow { ...@@ -76,7 +76,7 @@ public class Row extends Record implements SearchRow {
public int getMemorySize() { public int getMemorySize() {
if (memory != MEMORY_CALCULATE) { if (memory != MEMORY_CALCULATE) {
return blockCount * (DiskFile.BLOCK_SIZE / 16) + memory * 4; return blockCount * (DiskFile.BLOCK_SIZE / 8) + memory * 4;
} }
int m = blockCount * (DiskFile.BLOCK_SIZE / 16); int m = blockCount * (DiskFile.BLOCK_SIZE / 16);
for (int i = 0; data != null && i < data.length; i++) { for (int i = 0; data != null && i < data.length; i++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论