Skip to content

Conversation

@not-matthias
Copy link
Member

@not-matthias not-matthias commented Jan 20, 2026

We used to allocate a buffer for reading/sending the commands. Since we don't handle the Start/StopSample markers in instrument-hooks (for backwards compatibility reasons) we'll have to always perform those recvs/sends.

However, instead of allocating the required memory at runtime we now have a static buffer which is definitely big enough for all the commands that we currently have and ever will have (otherwise we can always bump it).

@not-matthias not-matthias changed the base branch from main to cod-2039-issue-with-instrument-hooks-failing-in-codspeed-benchmark January 20, 2026 10:37
@not-matthias not-matthias changed the title cod 1779 investigate additional allocations 128b fix: additional allocations (128b) Jan 20, 2026
Copy link
Contributor

@GuillaumeLagrange GuillaumeLagrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

olgtm, good catch!

@not-matthias not-matthias force-pushed the cod-1779-investigate-additional-allocations-128b branch from a6a4ceb to 89fb72a Compare January 20, 2026 13:10
@not-matthias not-matthias merged commit 89fb72a into cod-2039-issue-with-instrument-hooks-failing-in-codspeed-benchmark Jan 20, 2026
46 checks passed
@not-matthias not-matthias deleted the cod-1779-investigate-additional-allocations-128b branch January 20, 2026 17:34
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.

3 participants