diff options
author | chriseth <chris@ethereum.org> | 2019-01-14 21:12:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-14 21:12:10 +0800 |
commit | d5d90850b464d79cb2f98c7d0b7e34da8f564a00 (patch) | |
tree | 0174bf52a00e6839b7047aca7a151dd6216aaf25 | |
parent | dea9999f47dfe9c0a54dd2251758c88fa055f532 (diff) | |
parent | b49f6781efae5d0fb289a42c303767c406376508 (diff) | |
download | dexon-solidity-d5d90850b464d79cb2f98c7d0b7e34da8f564a00.tar.gz dexon-solidity-d5d90850b464d79cb2f98c7d0b7e34da8f564a00.tar.zst dexon-solidity-d5d90850b464d79cb2f98c7d0b7e34da8f564a00.zip |
Merge pull request #5789 from ethereum/waq-multid-array
[DOCS] Remove Multi-dimensional array FAQ
-rw-r--r-- | docs/frequently-asked-questions.rst | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index 2cc082b4..653ff483 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -94,23 +94,6 @@ The key point is that the calling contract needs to know about the function it i See `ping.sol <https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/45_ping.sol>`_ and `pong.sol <https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/45_pong.sol>`_. -How do you create 2-dimensional arrays? -======================================= - -See `2D_array.sol <https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/55_2D_array.sol>`_. - -Note that filling a 10x10 square of ``uint8`` + contract creation took more than ``800,000`` -gas at the time of this writing. 17x17 took ``2,000,000`` gas. With the limit at -3.14 million... well, there’s a pretty low ceiling for what you can create right -now. - -Note that merely "creating" the array is free, the costs are in filling it. - -Note2: Optimizing storage access can pull the gas costs down considerably, because -32 ``uint8`` values can be stored in a single slot. The problem is that these optimizations -currently do not work across loops and also have a problem with bounds checking. -You might get much better results in the future, though. - How do I initialize a contract with only a specific amount of wei? ================================================================== |