Skip to content

Conversation

@fxamacker
Copy link
Owner

@fxamacker fxamacker commented Apr 21, 2023

The CCF codec in Cadence is faster, uses less memory, encodes deterministically, and produces smaller encodings than the JSON-CDC codec. A real FeesDeducted event taken from mainnet can encode to:

  • 298 bytes in JSON-CDC (minified).
  • 118 bytes in CCF (fully self-describing mode).
  • ~20 bytes in CCF (partially self-describing mode).

Also updated and shortened Why CBOR. This PR does not affect CCF codec implementations.

Closes #62

The CCF codec in Cadence is faster, uses less memory, encodes deterministically,
and produces smaller encodings than the JSON-CDC codec.  A real FeesDeducted
event taken from mainnet can encode to:
- 298 bytes in JSON-CDC (minified).
- 118 bytes in CCF (fully self-describing mode).
- ~20 bytes in CCF (partially self-describing mode).

And other updates to text that does not impact codecs.
@fxamacker fxamacker self-assigned this Apr 21, 2023
@fxamacker fxamacker merged commit e8da203 into main Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shorten and cleanup Why CBOR section of specs

2 participants