Skip to content
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

Use tableswitches in term encoding #199

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Use tableswitches in term encoding #199

merged 1 commit into from
Oct 24, 2024

Conversation

Ostrzyciel
Copy link
Member

Same optimization as in #198 – instead of going through if-else-if chains with multiple virtual method calls to if* methods, do one virtual method call to termNumber and then use the tableswitch instruction.

Same optimization as in #198 – instead of going through if-else-if chains with multiple virtual method calls to if* methods, do one virtual method call to `termNumber` and then use the tableswitch instruction.
@Ostrzyciel Ostrzyciel merged commit 39e1f31 into main Oct 24, 2024
4 checks passed
@Ostrzyciel Ostrzyciel deleted the tableswitch-terms branch October 24, 2024 09:26
Ostrzyciel added a commit that referenced this pull request Oct 24, 2024
This reverts commit 39e1f31.

It's not any faster.
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