-
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
[Builtins] Inline 'KnownBuiltinTypeIn' constraints #4380
[Builtins] Inline 'KnownBuiltinTypeIn' constraints #4380
Conversation
/benchmark plutus-benchmark:validation |
Comparing benchmark results of 'plutus-benchmark:validation' on '17e096548' (base) and '5581c30bf' (PR)
|
5581c30
to
2fa61f9
Compare
Ready for review. |
Wait, what. |
Seems like a glitch to me. Removing some constraints hardly can make the code slower. Core is much better. Everything else got a speedup. |
/benchmark plutus-benchmark:validation |
Comparing benchmark results of 'plutus-benchmark:validation' on 'afe6dcd54' (base) and 'f9ccac2e7' (PR)
|
Oops, merged instead of rebasing, fixing. |
f2c666f
to
03a216e
Compare
@michaelpj what's wrong with CI? |
/benchmark plutus-benchmark:validation |
Comparing benchmark results of 'plutus-benchmark:validation' on 'afe6dcd54' (base) and '03a216ed0' (PR)
|
03a216e
to
fe3ee8c
Compare
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.
I guess if you think the Core is clearly better I'm okay with it, but I think the speedup is below our noise threshold so 🤷
The escrow ones got slower after the skew binary change. These are the only 3 that are underperforming when using skewbinary instead of intmap as the env. I have not investigated why. |
/benchmark plutus-benchmark:nofib |
Comparing benchmark results of 'plutus-benchmark:nofib' on 'afe6dcd54' (base) and 'fe3ee8c70' (PR)
|
/benchmark plutus-benchmark:nofib |
Comparing benchmark results of 'plutus-benchmark:nofib' on 'afe6dcd54' (base) and 'fe3ee8c70' (PR)
|
/benchmark plutus-benchmark:nofib |
Comparing benchmark results of 'plutus-benchmark:nofib' on 'afe6dcd54' (base) and 'fe3ee8c70' (PR)
|
I think a 2% change is above our noise threshold. In any case, this PR is essential. Here's how
Here's how it compiles now:
Note how in the latter we directly match on I'm not sure where the occasional slowdown is coming from (I did look at the whole Core output closely), maybe those |
Co-authored-by: Michael Peyton Jones <michael.peyton-jones@iohk.io>
Don't look here yet.