Skip to content

Optimise CBOR parsing + serialization through raw APIs and Codable #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 13, 2025

Conversation

Joannis
Copy link
Member

@Joannis Joannis commented Apr 13, 2025

Relies on #1

Makes an effort to:

  • Make less copies to and from Data.
  • Allow use and reuse of existing of [UInt8] values
  • Encoding into an existing buffer, which can reduce necessary (re)allocations
  • Optimise CBOR Integer parsing which was copying out the bytes into an array before
  • Use lower defaults for maximum array/map/string/bytes sizes
  • Replace blanket the indirect enum with an indirect case where relevant, as indirect makes the subject a reference counted value with heap storage

@zamderax zamderax merged commit dc4c2a6 into edgeengineer:main Apr 13, 2025
3 checks passed
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.

2 participants