Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rvagg/cborg
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.5.3
Choose a base ref
...
head repository: rvagg/cborg
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.5.4
Choose a head ref
  • 2 commits
  • 8 files changed
  • 2 contributors

Commits on Jan 20, 2026

  1. perf(encode): bypass token creation for primitives and arrays (#163)

    Implement direct encoding path that writes CBOR bytes without
    intermediate Token allocation for most value types:
    - Primitives: null, boolean, number, bigint, string, Uint8Array
    - Arrays: header + recursive direct encode of elements
    - Maps: fall back to token-based encoding (required for key sorting)
    - Custom typeEncoders: checked per-value, fall back to tokens as needed
    
    Benchmark results (dag-cbor mode):
    - Integers: +25-66% encode throughput
    - Bytes: +17-20%
    - Strings: +15-17%
    - Overall w/ current benchmark: ~3% average improvement
    rvagg authored Jan 20, 2026
    Configuration menu
    Copy the full SHA
    d79b602 View commit details
    Browse the repository at this point in the history
  2. chore(release): 4.5.4 [skip ci]

    ## [4.5.4](v4.5.3...v4.5.4) (2026-01-20)
    semantic-release-bot committed Jan 20, 2026
    Configuration menu
    Copy the full SHA
    eb46d91 View commit details
    Browse the repository at this point in the history
Loading