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

Enhancement of Gas Optimisation in Smart Contract Execution #3

Open
yihong1120 opened this issue Dec 25, 2023 · 0 comments
Open

Enhancement of Gas Optimisation in Smart Contract Execution #3

yihong1120 opened this issue Dec 25, 2023 · 0 comments

Comments

@yihong1120
Copy link

Dear TON Foundation & Codeforces Team,

I hope this message finds you well. I am writing to address a matter of considerable importance concerning the efficiency of smart contract execution within the TON ecosystem, particularly in relation to gas consumption.

Issue Summary:
It has come to my attention that there is a potential for significant optimisation in the way smart contracts are executed, especially when considering the gas usage. The current gas consumption metrics suggest that there is room for improvement, which could lead to a more cost-effective and environmentally friendly operation of the TON blockchain.

Suggested Focus Areas:

  1. Optimisation of Recursive Functions: Recursive calls in smart contracts appear to consume an inordinate amount of gas. A review of the execution stack and potential tail-call optimisation could mitigate this issue.

  2. State Management Efficiency: The storage and retrieval of state variables can be further optimised. Exploring the possibility of state compression or more efficient data structures could lead to reduced gas costs.

  3. Bytecode Optimisation: The compilation process may benefit from an additional layer of optimisation. By refining the bytecode generation, we could potentially decrease the gas required for contract deployment and execution.

  4. Advanced Gas Estimation Tools: Providing developers with more advanced tools for estimating gas could lead to better-optimised code before deployment.

Impact of the Issue:
The implications of high gas consumption are twofold; firstly, it places a financial burden on users interacting with the blockchain, and secondly, it increases the computational load, which has environmental ramifications.

Proposed Next Steps:
I believe a collaborative effort to address these optimisation challenges could yield substantial benefits. Perhaps a dedicated working group or a series of hackathons could be organised to tackle these issues head-on.

I am keen to contribute to this endeavour and would be delighted to discuss potential strategies further. I look forward to your thoughts on this matter.

Best regards,
yihong1120

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

No branches or pull requests

1 participant