Skip to content

Conversation

lmb
Copy link
Collaborator

@lmb lmb commented Apr 21, 2025

ebpf: use binary.Append

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>

tests: use binary.Append where appropriate

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>

sysenc: use binary.Append when marshaling

Using binary.Append allows us to drop allocating a bytes.Buffer from a
sync.Pool. This reduces the number of allocations in some benchmarks.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>

lmb added 3 commits April 21, 2025 11:48
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
Using binary.Append allows us to drop allocating a bytes.Buffer from
a sync.Pool. This reduces the number of allocations in some benchmarks.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
@lmb lmb marked this pull request as ready for review April 22, 2025 10:20
@lmb lmb requested review from dylandreimerink and a team as code owners April 22, 2025 10:20
@lmb lmb merged commit 4beb178 into cilium:main Apr 22, 2025
17 checks passed
@lmb lmb deleted the binary-append branch April 22, 2025 10:20
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