Skip to content

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

Open
seanmonstar wants to merge 1 commit into
masterfrom
sean/xukxluvvmvlz
Open

perf(header): reduce HeaderMap layout size with less used fields#866
seanmonstar wants to merge 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.
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