Skip to content

Inline ndata() in concatkdf New#1567

Merged
lestrrat merged 1 commit intodevelop/v3from
perf-concatkdf-new
Feb 22, 2026
Merged

Inline ndata() in concatkdf New#1567
lestrrat merged 1 commit intodevelop/v3from
perf-concatkdf-new

Conversation

@lestrrat
Copy link
Collaborator

Write length-prefixed fields directly into a single buffer, eliminating intermediate allocations from ndata().

No measurable perf change (compiler already optimized via inlining + escape analysis): 54.6 ns/op, 128 B/op, 2 allocs.

Write length-prefixed fields directly into a single buffer,
eliminating intermediate allocations from ndata().

No measurable perf change (compiler already optimized via
inlining + escape analysis): 54.6 ns/op, 128 B/op, 2 allocs.
@lestrrat lestrrat merged commit 4e9810a into develop/v3 Feb 22, 2026
23 checks passed
@lestrrat lestrrat deleted the perf-concatkdf-new branch February 22, 2026 11:16
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