-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
beginnerbeginner level good first issues, usually issues that can worked on without skimming the whole repobeginner level good first issues, usually issues that can worked on without skimming the whole repogood first issueGood for newcomersGood for newcomers
Description
CBOR - Concise Binary Object Representation, seems to be used to a good extent within the IoT community. Also the recommended serialization for CoAP.
From node-wot perspective, it was recommended by the community to try CBOR serializer for a faster serialization protocol than JSON.
Especially, we (already) support property-by-property basis in main next release branch & set the content type headers correctly just for the particular property. So normally for low size payload, people may use JSON for readbility, but other serilization for larger payloads.
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 serializable
- do speed tests and compare with other serializers, there is some boiler plate code here. Especially numpy types must be considered. This is optional, but very useful if numbers can be added into the documentation at some point.
- import of a CBOR serializer must be optional (i..e the dependency that provides this serilization format). If people want, they can explicity install this serilization. This should be added to documentation.
- add tests
Please fork main-next-release branch and merge into main-next-release. The test_03_serializers.py should pass. Others may not, but that is fine.
Metadata
Metadata
Assignees
Labels
beginnerbeginner level good first issues, usually issues that can worked on without skimming the whole repobeginner level good first issues, usually issues that can worked on without skimming the whole repogood first issueGood for newcomersGood for newcomers
Type
Projects
Status
No status