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

Write PCAP header after we received a valid UUID #57

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

robertodauria
Copy link
Contributor

@robertodauria robertodauria commented Oct 29, 2024

This change moves when the first Write happens, keeping all the packets received before receiving a UUID in a local buffer.

The difference in terms of used memory is significant (~50% less with 5000 flows) and is explained by the fact that the first write to a gzip.Writer allocates more memory than what's needed for the packets alone.


This change is Reviewable

Copy link
Contributor

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@robertodauria robertodauria merged commit 70d4ff1 into main Oct 29, 2024
5 checks passed
@robertodauria robertodauria deleted the sandbox-roberto-move-header-creation branch October 29, 2024 15:42
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.

2 participants