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
Gas schedule fine tuning #2690
Gas schedule fine tuning #2690
Conversation
iulianpascalau
commented
Jan 13, 2021
•
edited
edited
- adjusted CryptoAPICost gas costs & AoT gas cost
@@ -68,7 +68,7 @@ | |||
ExecuteOnDestContext = 160000 | |||
DelegateExecution = 160000 | |||
AsyncCallStep = 200000 | |||
AsyncCallbackGasLock = 20000000 | |||
AsyncCallbackGasLock = 2000000 |
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.
10x cheaper?
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.
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.
yes. it was way too much. we have an additional dynamic gas lock depending on the size of the contract. which gets accumulated with this.
@@ -1,7 +1,7 @@ | |||
[BuiltInCost] | |||
ChangeOwnerAddress = 5000000 | |||
ClaimDeveloperRewards = 5000000 | |||
SaveUserName = 5000000 | |||
SaveUserName = 1000000 |
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.
5x cheaper?
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.
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.
yes. it is a simple save which will come through the DNS contract which already consumes around 14-15 million gas. plus async call gas.
AoTPreparePerByte = 200 | ||
GetCode = 100000 | ||
AoTPreparePerByte = 300 | ||
GetCode = 1000000 |
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.
10x expensive?
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.
yup, according to our tests, those are the correct new values
ca1edbc