Skip to content

Optimize Link layout for codegen#63

Merged
197g merged 1 commit intomasterfrom
link-layout
Apr 8, 2026
Merged

Optimize Link layout for codegen#63
197g merged 1 commit intomasterfrom
link-layout

Conversation

@197g
Copy link
Copy Markdown
Member

@197g 197g commented Apr 8, 2026

Previously it had members with no motivated order and ABI. We now have the case that the costly operation is extracting the index via a mask so let us make sure it is an integer where all operations are a bitshift away.

~1.5-2% faster on all benchmarks.

As an interesting artifact, derive and derive_burst now generate single movs for Link-table entries where the previously generate three individual ones for each field (by cargo asm). That's odd; there is no semantic change that would have made it incorrect to fuse these.

Previously it had members with no motivated order and ABI. We now have the
case that the costly operation is extracting the index via a mask so let us
make sure it is an integer where all operations are a bitshift away.
@197g 197g merged commit c0985db into master Apr 8, 2026
15 checks passed
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