Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace indexmap with vec #90

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rukai
Copy link
Collaborator

@rukai rukai commented Sep 30, 2024

Possible solution for #84

I'll have a go at porting my application to it and report back.

edit:
shotover/shotover-proxy#1759
The benchmark for decoding produce requests improved by 20% !

Fun fact I realized about IndexMap is its actually backed by 2 allocations.
So if we create a HashMap (1 allocation) to construct a request to be batch encoded, and then convert that to a Vec (1 allocation) to be compatible with kafka-protocol, that is actually the same number of allocations as just using IndexMap.

Will think about this some more.

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