Skip to content

Support CBOR serialization #19

Open
@VigneshVSV

Description

@VigneshVSV

From node-wot perspective, it was recommended by the community to try CBOR serializer for a faster serialization protocol than JSON.

Especially, this may be supported property-by-property basis & set the content type headers correctly just for the particular property. Before all that, it is useful to start supporting CBOR as a general serializer itself.

Possible steps involved

  • Find a C/C++ supporting CBOR serialization implementation
  • Overload BaseSerializer and add dumps and loads methods, type replacement registration, allowance for a separate hook which accepts types that are not by default seriliazable
  • do speed tests and compare with other serializers, there is some boiler plate code here. Especially numpy types must be considered.
  • test RPC operations & events (test_rpc.py, test_events.py)
  • test support from Thing's init
  • update content type for HTTP if it is used for thing.http_serializer

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginnerbeginner level good first issues, usually issues that can worked on without skimming the whole repogood first issueGood for newcomers

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions