ton-blockchain / wallet-contract-v5

w5
MIT License
121 stars 32 forks source link

[Code Fix] Reduce code jumps #16

Closed e6654321 closed 2 months ago

e6654321 commented 3 months ago

15 - Reduce jump commands by removing nested if condition for improved storage and gas

nns2009 commented 2 months ago

Have you tested gas reduction?

It looks to me that it will increase gas costs in the "primary case" (signature is correct): your code will go through two conditions (one of which also has &) instead of one

tolya-yanot commented 2 months ago

At this development stage, optimisations are not longer acceptable; and it is also debatable whether gas consumption will decrease