Skip to content

go: use ugorji NumBytesWritten (from #79) + codec v1.3.2 - #81

Merged
leo-gan merged 1 commit into
masterfrom
land-pr-79-ugorji-numbytes
Aug 12, 2026
Merged

go: use ugorji NumBytesWritten (from #79) + codec v1.3.2#81
leo-gan merged 1 commit into
masterfrom
land-pr-79-ugorji-numbytes

Conversation

@leo-gan

@leo-gan leo-gan commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

Why not merge #79 as-is?

#79 fails CI: NumBytesWritten is undefined on the pinned v1.3.1 Encoder. This PR is the complete, buildable form of that change.

Test plan

  • go test ./serializers/ with codec v1.3.2
  • CI go-benchmark smoke on this PR

Closes #79

Use the native Encoder.NumBytesWritten() API instead of wrapping the
writer with countWriter. Requires ugorji/go/codec v1.3.2, which added
the method. Original change by @ugorji in #79.
@leo-gan
leo-gan merged commit 807133f into master Aug 12, 2026
11 checks passed
@leo-gan
leo-gan deleted the land-pr-79-ugorji-numbytes branch August 12, 2026 23:41
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.

1 participant