sway/scripts
Daniel Frederico Lins Leite 4e16bedab2
Some checks are pending
CI / verifications-complete (push) Blocked by required conditions
CI / check-dependency-version-formats (push) Waiting to run
CI / forc-fmt-check-panic (push) Waiting to run
CI / check-forc-manifest-version (push) Waiting to run
CI / get-fuel-core-version (push) Waiting to run
CI / build-sway-lib-std (push) Waiting to run
CI / build-sway-examples (push) Waiting to run
CI / forc-fmt-check-sway-lib-std (push) Waiting to run
CI / check-sdk-harness-test-suite-compatibility (push) Waiting to run
CI / build-mdbook (push) Waiting to run
CI / build-forc-doc-sway-lib-std (push) Waiting to run
CI / build-forc-test-project (push) Waiting to run
CI / cargo-build-workspace (push) Waiting to run
CI / Build and test various forc tools (push) Blocked by required conditions
CI / cargo-unused-deps-check (push) Waiting to run
CI / pre-publish-check (push) Waiting to run
CI / publish (push) Blocked by required conditions
CI / publish-sway-lib-std (push) Blocked by required conditions
CI / Build and upload forc binaries to release (push) Blocked by required conditions
github pages / deploy (push) Waiting to run
Codspeed Benchmarks / benchmarks (push) Waiting to run
CI / build-reference-examples (push) Waiting to run
CI / forc-fmt-check-sway-examples (push) Waiting to run
CI / cargo-clippy (push) Waiting to run
CI / cargo-toml-fmt-check (push) Waiting to run
CI / cargo-fmt-check (push) Waiting to run
CI / cargo-run-e2e-test (push) Blocked by required conditions
CI / cargo-run-e2e-test-release (push) Blocked by required conditions
CI / cargo-test-lib-std (push) Waiting to run
CI / forc-run-benchmarks (push) Waiting to run
CI / forc-unit-tests (push) Waiting to run
CI / forc-pkg-fuels-deps-check (push) Waiting to run
CI / notify-slack-on-failure (push) Blocked by required conditions
Improve Contract Call by not encoding fuelvm protocol args (#7447)
## Description

This is an optimization of contract calls on top of
https://github.com/FuelLabs/sway/pull/7440.

```csv
const_of_contract_call::cost_of_in_array_0,1976,1285
const_of_contract_call::cost_of_in_array_1,3164,1779
const_of_contract_call::cost_of_in_array_16,5096,4753
const_of_contract_call::cost_of_in_array_32,8421,8079
const_of_contract_call::cost_of_in_array_64,60382,14545
const_of_contract_call::cost_of_in_array_8,4724,4382
const_of_contract_call::cost_of_in_b256,2491,2147
const_of_contract_call::cost_of_in_bool,2627,2279
const_of_contract_call::cost_of_in_str_0,3043,2697
const_of_contract_call::cost_of_in_str_1,3345,2998
const_of_contract_call::cost_of_in_str_16,3374,3030
const_of_contract_call::cost_of_in_str_32,3572,3227
const_of_contract_call::cost_of_in_str_8,3768,3421
const_of_contract_call::cost_of_in_tuple_0,3822,3479
const_of_contract_call::cost_of_in_tuple_1,4392,4050
const_of_contract_call::cost_of_in_tuple_2,4761,4418
const_of_contract_call::cost_of_in_tuple_3,5104,4761
const_of_contract_call::cost_of_in_tuple_4,5468,5126
const_of_contract_call::cost_of_in_u16,4493,4141
const_of_contract_call::cost_of_in_u256,4777,4433
const_of_contract_call::cost_of_in_u32,4926,4582
const_of_contract_call::cost_of_in_u64,4934,4589
const_of_contract_call::cost_of_in_u8,4874,4526
const_of_contract_call::in_enum_u64,3186,2843
const_of_contract_call::in_enum_u64_u64,3061,2718
const_of_contract_call::in_enum_u64_u64_u64,3173,2830
const_of_contract_call::in_struct_u64,3635,3293
const_of_contract_call::in_struct_u64_u64,3897,3554
const_of_contract_call::in_struct_u64_u64_u64,4156,3813
const_of_contract_call::isolated_cost_of_in_array_0,956,956
const_of_contract_call::isolated_cost_of_in_array_1,1515,1185
const_of_contract_call::isolated_cost_of_in_array_16,3955,3266
const_of_contract_call::isolated_cost_of_in_array_32,6544,5471
const_of_contract_call::isolated_cost_of_in_array_64,9914,9914
const_of_contract_call::isolated_cost_of_in_array_8,3225,2728
const_of_contract_call::isolated_cost_of_in_b256,1462,1120
const_of_contract_call::isolated_cost_of_in_bool,1358,1047
const_of_contract_call::isolated_cost_of_in_str_0,1451,1140
const_of_contract_call::isolated_cost_of_in_str_1,1547,1237
const_of_contract_call::isolated_cost_of_in_str_16,1552,1241
const_of_contract_call::isolated_cost_of_in_str_32,1553,1242
const_of_contract_call::isolated_cost_of_in_str_8,1551,1241
const_of_contract_call::isolated_cost_of_in_tuple_0,820,820
const_of_contract_call::isolated_cost_of_in_tuple_1,1412,1090
const_of_contract_call::isolated_cost_of_in_tuple_2,1615,1304
const_of_contract_call::isolated_cost_of_in_tuple_3,1766,1455
const_of_contract_call::isolated_cost_of_in_tuple_4,1916,1605
const_of_contract_call::isolated_cost_of_in_u16,1428,1117
const_of_contract_call::isolated_cost_of_in_u256,1431,1120
const_of_contract_call::isolated_cost_of_in_u32,1554,1243
const_of_contract_call::isolated_cost_of_in_u64,1336,1025
const_of_contract_call::isolated_cost_of_in_u8,1352,1041
```

## Checklist

- [x] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] If my change requires substantial documentation changes, I have
[requested support from the DevRel
team](https://github.com/FuelLabs/devrel-requests/issues/new/choose)
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [x] I have requested a review from the relevant team or maintainers.
2025-10-20 17:24:58 +00:00
..
bisect-forc Cost of contract calls snapshot tests (#7440) 2025-10-16 14:41:51 +00:00
compare-gas-usage Cost of contract calls snapshot tests (#7440) 2025-10-16 14:41:51 +00:00
csv2html Improve Contract Call by not encoding fuelvm protocol args (#7447) 2025-10-20 17:24:58 +00:00
formatter Add CI check to ensure forc-fmt doesn't panic (#5051) 2023-08-29 19:48:21 +10:00
highlightjs forc doc: Generate dependency documentation (#4546) 2023-05-22 21:27:32 +03:00
mdbook-forc-documenter chore: bumpt rust version to 1.90 (#7427) 2025-10-02 22:28:51 +13:00
prism Create markdown-lint.yml (#2534) 2022-08-15 12:45:07 -04:00