-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4387: Lower chainspec control flow costs. r=AlexanderLimonov a=mpapierski This lowers the gas costs for `br`, `br_if`, `br_table`, `call`, and `call_indirect` costs. The researched value is lower than current costs, and also secure for the upcoming 16-second blocks. The impact on NFT contract: measurement | cost before | costs modified | impact -- | -- | -- | -- install_cost | 268614304810 | 254901355810 | 94.89% second_mint_gas_costs | 12184348140 | 2536357140 | 20.82% third_mint_gas_costs | 12184348140 | 2536357140 | 20.82% reverse_lookup_gas_cost | 269147109850 | 255096390850 | 94.78% no_lookup_gas_cost | 268364628780 | 254799495780 | 94.95% reverse_lookup_gas_cost | 269147110490 | 255096391490 | 94.78% no_lookup_gas_cost | 268364628780 | 254799495780 | 94.95% second_transfer_gas_cost | 19648823480 | 3936857480 | 20.04% third_transfer_gas_cost | 19648823480 | 3936857480 | 20.04% The operating expenses are cheaper (mint, transfer) at around 80%, while the upfront costs for installation are about ~5% cheaper. Co-authored-by: Michał Papierski <michal@casperlabs.io>
- Loading branch information
Showing
3 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters