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

Micro optimizations of interpreter loop #47

Merged
merged 3 commits into from
Aug 9, 2024
Merged

Conversation

smarr
Copy link
Member

@smarr smarr commented Aug 9, 2024

  • make RemainingStackSize inlinable
  • mark an out-of-bounds check as unlikely
  • make ErrorExit and Quit non-inlinable

This seem to give a surprising amount of speed: median -3% (min. -25%, max. 10%)
https://rebench.dev/SOMpp/compare/4ba47cfe11c5e5b4d5379c36de923faf601ffc93..8866a58999526c54a50fc5d4e4c948ee94176a89

@smarr smarr merged commit e1feaf1 into SOM-st:master Aug 9, 2024
18 checks passed
@smarr smarr deleted the micro-opts branch August 9, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant