Comments (2)
from contracts.
WHY WONDERLAND DOES-NOT HAVE A CUSTOMER SERVICE?????? V
…
On Fri, Aug 19, 2022 at 10:33 AM Ether1oop @.> wrote: Hi, we recently have conducted a systematic study about Solidity event usage, evolution, and impact, and we are attempting to build a tool to improve the practice of Solidity event use based on our findings. We have tried our prototype tool on some of the most popular GitHub Solidity repositories, and for your repository, we find a potential optimization of gas consumption arisen from event use. The point is that when we use emit operation to store the value of a certain variable, local memory type variable would be preferable to global storage type (state) variable if they hold the same value. The reason is that an extra SLOAD operation would be needed to access the variable if it is storage type, and the SLOAD operation costs 800 gas. For your repository, we find that the following event use can be improved: - TimeERC20.sol https://github.com/Wonderland-Money/contracts/blob/main/TimeERC20.sol function name: setVault event name: VaultTransferred variable: vault ->vault function setVault( address vault_ ) external onlyOwner() { require(vault_ != address(0), "IA0"); vault = vault; emit VaultTransferred( _vault ); } Do you find our results useful? Your reply and invaluable suggestions would be greatly appreciated, and are vital for improving our tool. Thanks a lot for your time! — Reply to this email directly, view it on GitHub <#15>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXDHQN73A4S6N6RLNMHPPKDVZ42EZANCNFSM567XT3OQ . You are receiving this because you are subscribed to this thread.Message ID: @.>
We appreciate your comments!We are a research group on programming languages and software engineering, and we recently have conducted a systematic study about Solidity event usage, evolution, and impact. One of our major findings is that when we use emit operation to store the value of a certain variable, local memory type variable would be preferable to storage type (state) variable if they hold the same value, because this can save gas (an extra SLOAD operation is needed to access the variable if it is storage typ). We wish our findings are useful. We are constantly improving our prototype and also considering whether such (and similar) gas optimizations can be intergeated into the compiler optimization process.
from contracts.
Related Issues (10)
- 20+ days gone not updated in Wonderland.money at https://app.wonderland.money/#/stake HOT 1
- WORNING!!! Zero Balance in App.Wonderland.money . Paid US$2,220.33 = 0.516906164 Time (TIME)
- Hello Wonderland-Money Please work with Coinbase Wallet and make it 100% compatible. Why Wonderland-Money does not have it's own App ?
- after i wrapped my memo (wMemo) there is nothing available, why? I need help getting it back HOT 3
- Testnet contracts
- Stake showing zero HOT 2
- How to distribute in rebase mechanism.
- Unusual require statement in BondDepository HOT 1
- 2_deploy_contracts.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contracts.