Closed gkaracha closed 3 years ago
Gas costs | 9b59ce4b50781baf78895227a9d4b416e49e8272 | e11659de4b9ce7022effbeee96f2be75d12ced64 | Diff |
---|---|---|---|
checker%touch | 30618 | 30623 | 5 |
Entrypoint sizes | 9b59ce4b50781baf78895227a9d4b416e49e8272 | e11659de4b9ce7022effbeee96f2be75d12ced64 | Diff |
---|---|---|---|
touch | 56559 | 56563 | 4 |
Test coverage | 9b59ce4b50781baf78895227a9d4b416e49e8272 | e11659de4b9ce7022effbeee96f2be75d12ced64 | Diff |
---|---|---|---|
driftDerivative.ml | None | 100 | 100 |
Gas costs | 9b59ce4b50781baf78895227a9d4b416e49e8272 | 6d91dcd3a375d3d7826ee89236cd7e6e67cbfedf | Diff |
---|---|---|---|
checker%touch | 30618 | 30623 | 5 |
Entrypoint sizes | 9b59ce4b50781baf78895227a9d4b416e49e8272 | 6d91dcd3a375d3d7826ee89236cd7e6e67cbfedf | Diff |
---|---|---|---|
touch | 56559 | 56563 | 4 |
Test coverage | 9b59ce4b50781baf78895227a9d4b416e49e8272 | 6d91dcd3a375d3d7826ee89236cd7e6e67cbfedf | Diff |
---|---|---|---|
driftDerivative.ml | None | 100 | 100 |
Well, adding the inline
pragma makes no difference. Not sure why is the LIGO compiler sensitive to this change, but I doubt the +5 gas is of any importance.
Very strange about the few extra gas. I'm also not sure what Ligo is doing here.
Yeah, right?! It wouldn't be the first time that the order of definitions changed gas costs and entrypoint sizes, but I am still unclear as to why. If the definition is not inline
d I understand that their order matters, since you have to dig into the stack to find them. If they are inlined though, this makes little (actually not at all) sense to me. :shrug:
Too big a discussion for this PR though, I'll go ahead and merge it :smile:
This is only the first step in addressing #261. After this and #272 are merged we can work on the remaining parts:
continuousDriftDerivative.ml
, also respecting the signaturedriftDerivative.mli
;continuousDriftDerivative.ml
anddiscreteDriftDerivative.ml
(currentlydriftDerivative.ml
) into jinja templates;checker.yaml
.