Repository navigation
perf(go): encode fixed-width collections in blocks - #403
Merged
Merged
Conversation
Convert each pair in a single checked wire block when its Go layout includes padding or needs a byte-order conversion. Keep the bulk copy on matching layouts. Refs #353
Cache the Go key classification and reuse the seeded reader table for packed keys whose equality compares all their bytes. Keep the existing comparer for padding, floating-point members, pointers, and noncanonical representations. Refs #353
Use the wire stride for fixed-width pairs, sets, grids, and DateTimeOffset sequences. Share primitive block copies and write the raw layout fallback with direct generated calls. Exercise the generated paths against scalar bytes and invalid values. Refs #353
The same Go 1.26.11 test binary fails in QEMU 7.2.22 and passes repeatedly with asynchronous preemption on under 10.0.13.
Independent harness branches need history-only merges of both commits. Verify each SHA is an ancestor of the request branch before pushing.
Restore the existing scalar dispatch and text probe. Cache structural bytewise equality only for composite keys, which use the same seeded reader storage and bounded probing. Refs #353
Walk fixed map entries by index and take their address so that encoding large keys and values avoids range-value and stack temporaries. Refs #353
Record the measured block improvements, the address-based map encoder and the dispatch controls that protected the scalar and text paths.
JasonXuDeveloper
marked this pull request as ready for review
November 18, 2026 17:05
…tions # Conflicts: # runtimes/go/internal/generated/shapes/nino_types.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
MOVUPSinstructions per entry to two and retains the stride guard.Verification
Generated codecs use direct calls on the raw-layout fallback. The exported
ReadRawandWriteRawhelpers still accept caller-supplied callbacks, and scalar/string dispatch keeps its existing cheap type lookup. Composite key field classification is cached.Refs #353
Generated by Codex