Skip to content

perf(header): reduce HeaderMap layout size with less used fields - #866

Merged
seanmonstar merged 1 commit into
masterfrom
sean/xukxluvvmvlz
Sep 8, 2026
Merged

perf(header): reduce HeaderMap layout size with less used fields#866
seanmonstar merged 1 commit into
masterfrom
sean/xukxluvvmvlz

Conversation

@seanmonstar

Copy link
Copy Markdown
Member

The mask doesn't need to be cached, it's easily calculated when needed.

The extra values list and the Red danger hash state are not commonly used. So, put those into an optional lazy box that is only made when needed.

This reduces the amount of layout space by 5 words.

The mask doesn't need to be cached, it's easily calculated when needed.

The extra values list and the Red danger hash state are not commonly used. So,
put those into an optional lazy box that is only made when needed.

This reduces the amount of layout space by 5 words.
@seanmonstar
seanmonstar merged commit ae157da into master Sep 8, 2026
10 checks passed
@seanmonstar
seanmonstar deleted the sean/xukxluvvmvlz branch September 8, 2026 13:07
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