Skip to content

all: use binary.Append where appropriate#1760

Merged
lmb merged 3 commits intocilium:mainfrom
lmb:binary-append
Apr 22, 2025
Merged

all: use binary.Append where appropriate#1760
lmb merged 3 commits intocilium:mainfrom
lmb:binary-append

Conversation

@lmb
Copy link
Contributor

@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 a team and dylandreimerink 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