RT for more explosion 🔥
#SolanaSummer ?
Hey, it's Bamboo
Today I want to discuss with you what's going on with the NFT on Solana. I think a lot of people have noticed that a lot of Sol collections have been hyped and showing outstanding results lately.
#NFT#Solana
P.S. I hope this information will help novice developers to optimize their smart contracts.
If you liked my mini article, you can share it with someone or just like it.
Good luck! ❤️
Hey! Today I would like to talk about optimizing smart contracts.📈
Many people know that deploying a contract costs a lot of gas, and therefore developers try to write it in the most optimized way.💻
In this thread, you will see several examples of optimization. 👇👇👇
4/4. Changing global variables in a loop.
By changing the global variable many times in a loop, we waste gas overwriting the data that is stored in the blockchain and this can cost a lot.
The local variable will help us save gas:
First call costs 30404.
The second 34250.