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

Eliminate memory allocations from packet generator #116

Open
bmerry opened this issue Oct 19, 2020 · 0 comments
Open

Eliminate memory allocations from packet generator #116

bmerry opened this issue Oct 19, 2020 · 0 comments

Comments

@bmerry
Copy link
Contributor

bmerry commented Oct 19, 2020

Currently it allocates memory to hold the headers and implicitly to manage a vector of item pointers. Having the writer class provide the storage for the headers (feasible, since the packet size is bounded) and recycling a vector for item pointers would eliminate the malloc/free overheads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant