-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Optimize huffman encoding static table initialization #45303
Optimize huffman encoding static table initialization #45303
Conversation
Tagging subscribers to this area: @dotnet/ncl Issue DetailsReasoning is in #45297
|
Although it feels fragile to split it into two array, I feel confident about this changes as unit tests have their own copy of encoding table runtime/src/libraries/Common/tests/Tests/System/Net/aspnetcore/Http2/HuffmanDecodingTests.cs Line 363 in 0d5e8d3
|
src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/Huffman.cs
Show resolved
Hide resolved
src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/Huffman.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/Huffman.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than my comments, LGTM. Thanks.
runtime (Libraries Test Run release coreclr windows x86 Release)
Error is unrelated; but odd as is a |
That stack makes no sense to me; it's pointing to
|
I assume that's the stack trace for Have been looking at odd
|
That was my initial thought as well, though I didn't see that anywhere in the assert code (nor is it clear to me why Contains would be used in such an assert), hence my comment. |
Yeah, can't see how it would get there :-/ |
Sorry @rokonec for this side discussion 😅 @stephentoub a more complete trace from #45310; again on
|
Raised issue for the null ref #45317 as it definitely looks like a thing |
@Tratcher can you please review this PR. It is slightly related to previous huffman PR, but considerable simpler and safer changes. |
Not immediately, I'm dealing with builds for the next two days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, this is how much better? 😆
Reasoning is in #45297