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

avm2: Avoid wildcard in op dispatch #19369

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

adrian17
Copy link
Collaborator

Extracted from https://github.com/adrian17/ruffle/tree/avm2-interpreter-loop .

I've seen the wildcard cause the compiler to generate slightly worse code, like extra range checks on the enum discriminant before jumping into the jump table.

@torokati44 torokati44 enabled auto-merge (rebase) January 28, 2025 21:47
@torokati44 torokati44 added A-avm2 Area: AVM2 (ActionScript 3) T-perf Type: Performance Improvements labels Jan 28, 2025
@torokati44 torokati44 merged commit 6ba533d into ruffle-rs:master Jan 28, 2025
22 checks passed
@adrian17 adrian17 deleted the avm2-dxns-op-stubs branch January 28, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) T-perf Type: Performance Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants