Skip to content

BlockChain #588

Answered by TatyOko28
Mercure28 asked this question in Q&A
Discussion options

You must be logged in to vote

Optimization techniques :

Use uint256instead of uint8,uint16 (EVMs read in 32-byte blocks).
Store variables in memoryrather than storagewhen possible .
Avoid loops foron dynamic arrays .
Prefer them mappinginstead of tables to store data .
Enable Solidity compiler optimization :

{
    optimizer: { enabled: true, runs: 200 }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mercure28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants