Share some codecs between encoding and decoding

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: