Skip to content

Use Encoder scratch space instead of allocating scratch space per-call#13

Open
palmerlao wants to merge 1 commit intogagliardetto:masterfrom
palmerlao:master
Open

Use Encoder scratch space instead of allocating scratch space per-call#13
palmerlao wants to merge 1 commit intogagliardetto:masterfrom
palmerlao:master

Conversation

@palmerlao
Copy link

@palmerlao palmerlao commented Jun 17, 2025

This also changes the TypeSizes to constants so that I can use TypeSizeUint128 to have the fixed-size array field in Encoder. Removing these allocations seems to halve the time my workload spends encoding data. The flame graph below shows the before (left) and after (right).

image

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