Skip to content

perf(decoder): replace match-based lookup with static array for HPACK#82

Merged
0x676e67 merged 1 commit into
masterfrom
perf
Mar 30, 2026
Merged

perf(decoder): replace match-based lookup with static array for HPACK#82
0x676e67 merged 1 commit into
masterfrom
perf

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

No description provided.

@0x676e67 0x676e67 changed the title perf(header): replace match-based lookup with static array for HPACK perf(decoder): replace match-based lookup with static array for HPACK Mar 30, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the HPACK static table lookup in src/hpack/decoder.rs by replacing a match statement with a static array and marking the get_static function as inline. Feedback suggests optimizing the static table by using a 0-indexed array of 61 elements to avoid the memory overhead of a dummy entry.

Comment thread src/hpack/decoder.rs Outdated
@0x676e67 0x676e67 merged commit 62c27a6 into master Mar 30, 2026
6 checks passed
@0x676e67 0x676e67 deleted the perf branch March 30, 2026 14:39
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