提交 2e6de2ee 编写于 作者: N Nikita Koksharov

refactoring

上级 394d683e
......@@ -51,21 +51,21 @@ public class Kryo5Codec extends BaseCodec {
public Kryo5Codec(ClassLoader classLoader) {
this.kryoPool = new Pool<Kryo>(true, false) {
this.kryoPool = new Pool<Kryo>(true, false, 1024) {
@Override
protected Kryo create() {
return createKryo(classLoader);
}
};
this.inputPool = new Pool<Input>(true, false) {
this.inputPool = new Pool<Input>(true, false, 512) {
@Override
protected Input create() {
return new Input(8192);
}
};
this.outputPool = new Pool<Output>(true, false) {
this.outputPool = new Pool<Output>(true, false, 512) {
@Override
protected Output create() {
return new Output(8192, -1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册