Skip to content
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

Merged
merged 10 commits into from Jan 16, 2021
Merged

Gas schedule fine tuning #2690

merged 10 commits into from Jan 16, 2021

Conversation

iulianpascalau
Copy link
Contributor

@iulianpascalau iulianpascalau commented Jan 13, 2021

  • adjusted CryptoAPICost gas costs & AoT gas cost

@iulianpascalau iulianpascalau changed the base branch from master to development January 13, 2021 14:04
sasurobert
sasurobert previously approved these changes Jan 16, 2021
@@ -68,7 +68,7 @@
ExecuteOnDestContext = 160000
DelegateExecution = 160000
AsyncCallStep = 200000
AsyncCallbackGasLock = 20000000
AsyncCallbackGasLock = 2000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10x cheaper?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5x cheaper?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10x expensive?

Copy link
Contributor Author

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

@LucianMincu LucianMincu merged commit 3219c4d into development Jan 16, 2021
@LucianMincu LucianMincu deleted the gas-schedule-fine-tuning branch January 16, 2021 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants