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 NOINLINE on stringToBuiltinByteString and stringToBuiltinString #6501

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

zliu41
Copy link
Member

@zliu41 zliu41 commented Sep 18, 2024

The plugin does not need their unfoldings, and cannot process their unfoldings: neither can the plugin handle Text.pack, nor does it have a handler for obfuscatedId.

Thus obfuscatedId makes no sense whatsoever. And there is no benefit to Magic.noInline compared to NOINLINE.

@zliu41 zliu41 added the No Changelog Required Add this to skip the Changelog Check label Sep 18, 2024
Copy link
Contributor

@effectfully effectfully left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really sign off on these changes, because I don't really understand all the moving parts. But I don't mind this getting merged (once comments are addressed).

plutus-tx/src/PlutusTx/Builtins/HasOpaque.hs Outdated Show resolved Hide resolved
plutus-tx/src/PlutusTx/Builtins/HasOpaque.hs Show resolved Hide resolved
Copy link
Member Author

@zliu41 zliu41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really sign off on these changes, because I don't really understand all the moving parts. But I don't mind this getting merged (once comments are addressed).

Ok, I'll merge it. The plugin 100% does not need and cannot compile the unfoldings of stringToBuiltinByteString and stringToBuiltinString, so there's no reason not to mark the OPAQUE.

@zliu41 zliu41 merged commit e94d73c into master Sep 19, 2024
5 of 8 checks passed
@zliu41 zliu41 deleted the zliu41/st branch September 19, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No Changelog Required Add this to skip the Changelog Check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants