-
Couldn't load subscription status.
- Fork 482
Costing for expModIntger, take two.
#7080
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
Conversation
| @@ -1 +1 @@ | |||
| Integer -> Integer -> Natural -> BuiltinResult Natural No newline at end of file | |||
| IntegerCostedByNumBytes -> IntegerCostedByNumBytes -> IntegerCostedByNumBytes -> BuiltinResult Natural No newline at end of file | |||
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.
How are these golden files generated? I don't see a type called IntegerCostedByNumBytes in the codebase?
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.
Oh, I removed that. I updated most of the golden files but must have forgotten this one. I'll fix that.
Fixes https://github.com/IntersectMBO/plutus-private/issues/1448
Fixes https://github.com/IntersectMBO/plutus-private/issues/1554
The earlier PR (#7071) for this measured sizes of inputs in bytes (not words) in order to get a high-resolution view of the data. I redid it with the standard size measure (8-byte words) and the results were just as accurate, so I decided to use that instead and open a new PR since it simplifies things a lot.
Some costs calculated according to the new costing function:
This seems reasonable for realistic input sizes, and it's actaully a bit cheaper than the previous version.