mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-16 09:24:47 +08:00
1.删除msgp序列化方式
2.优化临时内存池减少GC
This commit is contained in:
@@ -14,11 +14,11 @@ var rpcPbRequestDataPool sync.Pool
|
||||
|
||||
func init(){
|
||||
rpcPbResponeDataPool.New = func()interface{}{
|
||||
return &JsonRpcResponseData{}
|
||||
return &PBRpcResponseData{}
|
||||
}
|
||||
|
||||
rpcPbRequestDataPool.New = func()interface{}{
|
||||
return &JsonRpcRequestData{}
|
||||
return &PBRpcRequestData{}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user