Skip to content

Conversation

@nitely
Copy link
Collaborator

@nitely nitely commented Nov 25, 2025

Changes:

  • Preallocs definite strings (cbor string/byte-string) and seq (cbor array)
  • Special care taken to validate length before alloc

TODO:

this is ~3x faster on Orc and ~2x faster on Refc

body
exitNestedStructure(p)

template parseArrayLikeImpl(p: var CborParser, majorExpected: CborMajor, body: untyped) =

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nph] reported by reviewdog 🐶

Suggested change
template parseArrayLikeImpl(p: var CborParser, majorExpected: CborMajor, body: untyped) =
template parseArrayLikeImpl(
p: var CborParser, majorExpected: CborMajor, body: untyped
) =

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