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

Optimization for the general case of Offset == 0 #7

Open
redknightlois opened this issue Nov 3, 2014 · 0 comments
Open

Optimization for the general case of Offset == 0 #7

redknightlois opened this issue Nov 3, 2014 · 0 comments

Comments

@redknightlois
Copy link
Contributor

This optimization will allow to optimize for the case where offsets start at 0 and therefore it wont be necesarry to add the offset to the stack.

The proper way to handle this is duplicating the method code and have 2 MSIL paths. One that will handle the (Offset == 0) condition and another one that will handle the (Offset != 0) condition. The concept itself is more or less the same used at optimizing compilers to handle Loop Unrolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant