1.use zap instead of logrus;
2.benchmark test
3.sync.Pool?
4.field2Bytes may need to fix, do not use type-assertion
5.array instead of slice,such as sizebtyes
6.readMsgBytes? read exactly size instead of loop?
7.a better way to Init defalut object? no reflect?
1.use zap instead of logrus; 2.benchmark test 3.sync.Pool? 4.field2Bytes may need to fix, do not use type-assertion 5.array instead of slice,such as sizebtyes 6.readMsgBytes? read exactly size instead of loop? 7.a better way to Init defalut object? no reflect?