提交 9098afe1 authored 作者: Thomas Mueller's avatar Thomas Mueller

Speedup

上级 7528244f
......@@ -122,9 +122,11 @@ public class FileObjectMemory implements FileObject {
return;
}
byte[] out = new byte[BLOCK_SIZE];
if (d != COMPRESSED_EMPTY_BLOCK) {
synchronized (LZF) {
LZF.expand(d, 0, d.length, out, 0, BLOCK_SIZE);
}
}
data[page] = out;
}
......@@ -192,7 +194,6 @@ public class FileObjectMemory implements FileObject {
}
data = n;
}
}
private void readWrite(byte[] b, int off, int len, boolean write) throws IOException {
......
......@@ -76,10 +76,7 @@ public class FileSystemMemory extends FileSystem {
}
public boolean tryDelete(String fileName) {
fileName = normalize(fileName);
synchronized (MEMORY_FILES) {
MEMORY_FILES.remove(fileName);
}
delete(fileName);
return true;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论