-
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] Drop 'val' from 'KnownType' stuff #4499
[Builtins] Drop 'val' from 'KnownType' stuff #4499
Conversation
/benchmark plutus-benchmark:validation |
Em? |
/benchmark plutus-benchmark:validation |
Comparing benchmark results of 'plutus-benchmark:validation' on '70787f8b2' (base) and '9a990bfd3' (PR)
|
Eh. |
Sad times. |
I have a bigger hammer, so let's see. |
/benchmark plutus-benchmark:validation |
Core looks promising for |
Comparing benchmark results of 'plutus-benchmark:validation' on '70787f8b2' (base) and '0b2d49c88' (PR)
|
Okay, I find it kind of offensive that even after making it a single-method typeclass, passing in just the function is better :( |
Here's a phrase you might want to use: "dad, we need to talk". On a serious note though, it does kinda make sense. The inlined version has all the constraints explicitly discharged while the non-inlined one doesn't (the class methods have those constraints). For a different use case the constraints can be needed, it's just that we don't need to instantiate them in multiple ways and can hardcode a single instantiation into the constructors. |
/benchmark plutus-benchmark:validation |
Comparing benchmark results of 'plutus-benchmark:validation' on '70787f8b2' (base) and 'eedcefa70' (PR)
|
-1.07% on average, maybe noise, maybe not. @michaelpj should I finish this one off? I don't like that what's in here does not allow us to remove |
Yes, that's higher priority. I also wonder if we should try inlining read/makeKnown into |
…to effectfully/builtins/drop-val-from-KnownType-stuff
/benchmark plutus-benchmark:validation |
|
+0.9% on average. Sucks, I guess. Still gonna see if I can remove |
/benchmark plutus-benchmark:validation |
|
/benchmark plutus-benchmark:validation |
|
Wait, I merged |
I.e. it's probably even worse. |
Closing in favor of #4533. |
Let's see if it's better this time around.