kitex-contrib / codec-dubbo

支持 kitex <-> dubbo 互通的 dubbo 协议编解码器。
Apache License 2.0
16 stars 14 forks source link

[P3] Proposal: fastcodec for Hessian2 #28

Open felix021 opened 1 year ago

felix021 commented 1 year ago

In the first version of codec-hessian2, we'll be using the dubbo-go-hessian2 to provide encoding and decoding of hessian2.

As the dubbo-go-hessian2 uses reflection, we realize that there's room for further optimization.

So in our implementation of dubbo protocol, we defined two interfaces Encoder and Decoder, so that we can replace it with another library.

This proposal suggests the implemention of a new Hessian2 encoder/decoder to achieve the best performance.

Take thrift as an example:

This proposal suggests to implement a fastcodec library for hessian2.

DMwangnima commented 8 months ago

I want to take this issue.

tiltwind commented 8 months ago

@DMwangnima Will you implement this proposal as a separate library? Hope it can be easily integrated into other framework, not only in kitex.

DMwangnima commented 8 months ago

@DMwangnima Will you implement this proposal as a separate library? Hope it can be easily integrated into other framework, not only in kitex.

I will take this into consideration so that both kitex and dubbo-go can benefit from this library.