I have written a contract that has an array of uint256's inside a simple struct. The rest of the struct is just some strings and a smaller integer. If the Dapp that manages this contract becomes widely accepted, the array of uints could hit tens of millions of elements. Considering how Solidity has trouble retrieving more than 6 or 8 state variables at a time, and how the EVM is compared to a 1995 cell phone, can anybody tell me whether my array will be okay if it gets that big??
0 ·
Comments
Depending on your needs, a mapping is probably better.