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.6
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.7
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 21, 2026

  1. perf(encode): tune string encoding thresholds for Node.js and browser (

    …#166)
    
    Optimise fromString() thresholds based on benchmarking in today's
    standard runtimes:
    - Node.js (Buffer.from): change 64 to 24 chars
    - Browser (TextEncoder): change 64 to 200 chars
    
    Buffer.from has low overhead, so use it for shorter strings.
    TextEncoder has high call overhead (~10-20x slower than manual
    utf8ToBytes for short strings), so only use it for long strings.
    
    Node.js: +2-4% short string encode, +19-24% medium string encode
    Browser: +17-63% encode improvement across string-heavy workloads
    rvagg authored Jan 21, 2026
    Configuration menu
    Copy the full SHA
    ef1e62d View commit details
    Browse the repository at this point in the history
  2. chore(release): 4.5.7 [skip ci]

    ## [4.5.7](v4.5.6...v4.5.7) (2026-01-21)
    semantic-release-bot committed Jan 21, 2026
    Configuration menu
    Copy the full SHA
    f2541a1 View commit details
    Browse the repository at this point in the history
Loading