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

avoid allocating a shortHeaderPacket struct in the PackPacket path #3647

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

marten-seemann
Copy link
Member

Depends on #3646.

I'm not 100% sure why this helps, but it makes the appendShortHeaderPacket code path disappear from the alloc profile. I assume that this helps the compiler do escape analysis?

@codecov
Copy link

codecov bot commented Dec 28, 2022

Codecov Report

Base: 85.06% // Head: 85.06% // No change to project coverage 👍

Coverage data is based on head (c24fbb0) compared to base (c24fbb0).
Patch has no changes to coverable lines.

❗ Current head c24fbb0 differs from pull request most recent head e10af24. Consider uploading reports for the commit e10af24 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3647   +/-   ##
=======================================
  Coverage   85.06%   85.06%           
=======================================
  Files         140      140           
  Lines       10338    10338           
=======================================
  Hits         8793     8793           
  Misses       1140     1140           
  Partials      405      405           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@marten-seemann marten-seemann changed the base branch from append-packet-header to master January 17, 2023 09:57
@marten-seemann marten-seemann merged commit c20b541 into master Jan 17, 2023
@marten-seemann marten-seemann deleted the optimize-short-header-packing branch January 18, 2023 07:25
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.

None yet

2 participants