Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
None
Description
Some codecs like StructCodec implement both ValueEncoder and ValueDecoder. In a single Registry, we can share a StructCodec instance between encoding and decoding. However, after GODRIVER-1751 is done, this won't be the case because we construct a new instance in RegisterDefaultEncoders and RegisterDefaultDecoders. We should consider adding a third registration function like RegisterSharedCodecs to handle shared instances.