-
Notifications
You must be signed in to change notification settings - Fork 483
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
Add PlutusTx.Optimize.Inline.inline for callsite inlining #6847
Conversation
Thanks for adding this! To help me understand the motivation behind this change, could you describe the issue it's designed to resolve? A brief explanation of the problem would be really helpful. |
See the tests - the more you inline, the cheaper. |
Its not clear to me why |
@Unisay I think the idea is that we want |
@Unisay GHC's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff.
This works like
GHC.Magic.inline
, and can be used in the form ofinline f
orinline (f args)
.